summaryrefslogtreecommitdiffstats
path: root/playbooks/openshift-master/private/revert-client-ca.yml
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-11-22 11:02:21 -0500
committerGitHub <noreply@github.com>2017-11-22 11:02:21 -0500
commit012be35217f7415d50afe5e74b7e2e995feea6b5 (patch)
treeaefe2efd52afcc36f3c9c504e70a9cc281371b7a /playbooks/openshift-master/private/revert-client-ca.yml
parentda85fd6aa7d71f97bfcaad3a2003921a5581a067 (diff)
parent78f11c8f671015d40a630208b548d0790ec3a823 (diff)
downloadopenshift-012be35217f7415d50afe5e74b7e2e995feea6b5.tar.gz
openshift-012be35217f7415d50afe5e74b7e2e995feea6b5.tar.bz2
openshift-012be35217f7415d50afe5e74b7e2e995feea6b5.tar.xz
openshift-012be35217f7415d50afe5e74b7e2e995feea6b5.zip
Merge pull request #6151 from mtnbikenc/consolidate-openshift-master
Playbook Consolidation - openshift-master
Diffstat (limited to 'playbooks/openshift-master/private/revert-client-ca.yml')
-rw-r--r--playbooks/openshift-master/private/revert-client-ca.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/playbooks/openshift-master/private/revert-client-ca.yml b/playbooks/openshift-master/private/revert-client-ca.yml
new file mode 100644
index 000000000..9ae23bf5b
--- /dev/null
+++ b/playbooks/openshift-master/private/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'