diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-08-06 10:41:11 -0400 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2016-08-08 15:59:13 -0300 |
commit | b3d04f1a54c0109ce38be103ddc7c83f1992c10e (patch) | |
tree | 6c23920d6d28523f539a2db9e663a79040de1b99 /playbooks | |
parent | cf84520dc0d9e5a3b8b88ca0b8d8e1720080f4da (diff) | |
download | openshift-b3d04f1a54c0109ce38be103ddc7c83f1992c10e.tar.gz openshift-b3d04f1a54c0109ce38be103ddc7c83f1992c10e.tar.bz2 openshift-b3d04f1a54c0109ce38be103ddc7c83f1992c10e.tar.xz openshift-b3d04f1a54c0109ce38be103ddc7c83f1992c10e.zip |
Migrate ca.crt to ca-bundle.crt
Diffstat (limited to 'playbooks')
-rw-r--r-- | playbooks/common/openshift-cluster/upgrades/upgrade.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/upgrade.yml b/playbooks/common/openshift-cluster/upgrades/upgrade.yml index 2e7635021..dee086cf5 100644 --- a/playbooks/common/openshift-cluster/upgrades/upgrade.yml +++ b/playbooks/common/openshift-cluster/upgrades/upgrade.yml @@ -32,6 +32,31 @@ # role: master # config_base: "{{ hostvars[inventory_hostname].openshift.common.config_base }}" + - name: Check for ca-bundle.crt + stat: + path: "{{ openshift.common.config_base }}/master/ca-bundle.crt" + register: ca_bundle_stat + failed_when: false + + - name: Check for ca.crt + stat: + path: "{{ openshift.common.config_base }}/master/ca.crt" + register: ca_crt_stat + failed_when: false + + - name: Migrate ca.crt to ca-bundle.crt + command: mv ca.crt ca-bundle.crt + args: + chdir: "{{ openshift.common.config_base }}/master" + when: ca_crt_stat.stat.isreg and not ca_bundle_stat.stat.exists + + - name: Link ca.crt to ca-bundle.crt + file: + src: "{{ openshift.common.config_base }}/master/ca-bundle.crt" + path: "{{ openshift.common.config_base }}/master/ca.crt" + state: link + when: ca_crt_stat.stat.isreg and not ca_bundle_stat.stat.exists + - name: Set master update status to complete hosts: oo_masters_to_config tasks: |