-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
171 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
- name: "Set fact cert file" | ||
ansible.builtin.set_fact: | ||
my_certfile: "{{ my_workdir }}/defkeyCert_{{ my_serial }}.txt" | ||
|
||
# kubectl cp some-namespace/some-pod:/tmp/foo /tmp/bar | ||
- name: Copy /spinstall/IBM/SPcm/defkeyCert.txt from a remote pod to {{ my_certfile }} | ||
kubernetes.core.k8s_cp: | ||
namespace: "{{ ssp_cm_namespace }}" | ||
pod: "s0-ibm-ssp-cm-0" | ||
remote_path: /spinstall/IBM/SPcm/defkeyCert.txt | ||
local_path: "{{ my_certfile }}" | ||
state: from_pod | ||
register: cout_k8s_cp | ||
retries: 10 | ||
delay: 30 # seconds | ||
|
||
# Create Certificate for Connect:Direct on Kubernetes | ||
# CD install script only support extensions .crt, .pem and .cer | ||
# ----------------------------------------------------------------------------- | ||
- name: Create or update Kubernetes secret with certificates files | ||
kubernetes.core.k8s: | ||
state: present | ||
definition: | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: "{{ ssp_keycert_secret }}" | ||
namespace: "{{ ssp_ps_namespace }}" | ||
data: | ||
keycert: "{{ lookup('file', my_certfile) | b64encode }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.