diff options
author | Andrew Butcher <abutcher@redhat.com> | 2017-11-06 12:35:13 -0500 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2017-11-06 17:05:16 -0500 |
commit | 89fcbb72447ab74b440c15d1e35a1dd10cef1c49 (patch) | |
tree | 417baa390469950d6fa367057ccf47755c35f38d /playbooks/common/openshift-master/revert-client-ca.yml | |
parent | 5efcf4a2f7e9c2f21c6f9f86dc08f12fd5f56290 (diff) | |
download | openshift-89fcbb72447ab74b440c15d1e35a1dd10cef1c49.tar.gz openshift-89fcbb72447ab74b440c15d1e35a1dd10cef1c49.tar.bz2 openshift-89fcbb72447ab74b440c15d1e35a1dd10cef1c49.tar.xz openshift-89fcbb72447ab74b440c15d1e35a1dd10cef1c49.zip |
Temporarily set master servingInfo.clientCA as client-ca-bundle.crt during rolling CA redeployment.
Diffstat (limited to 'playbooks/common/openshift-master/revert-client-ca.yml')
-rw-r--r-- | playbooks/common/openshift-master/revert-client-ca.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/playbooks/common/openshift-master/revert-client-ca.yml b/playbooks/common/openshift-master/revert-client-ca.yml new file mode 100644 index 000000000..9ae23bf5b --- /dev/null +++ b/playbooks/common/openshift-master/revert-client-ca.yml @@ -0,0 +1,17 @@ +--- +- name: Set servingInfo.clientCA = ca.crt in master config + hosts: oo_masters_to_config + tasks: + - name: Read master config + slurp: + src: "{{ openshift.common.config_base }}/master/master-config.yaml" + register: g_master_config_output + + # servingInfo.clientCA may be set as the client-ca-bundle.crt from + # CA redeployment and this task reverts that change. + - name: Set servingInfo.clientCA = ca.crt in master config + modify_yaml: + dest: "{{ openshift.common.config_base }}/master/master-config.yaml" + yaml_key: servingInfo.clientCA + yaml_value: ca.crt + when: (g_master_config_output.content|b64decode|from_yaml).servingInfo.clientCA != 'ca.crt' |