summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2017-02-10 11:19:33 -0500
committerAndrew Butcher <abutcher@redhat.com>2017-02-10 11:19:33 -0500
commit75dcc04f40548aa93d175567de09f06f41f9c095 (patch)
tree171ede08d01db9130834e9e21c7950e41a8e82ad /playbooks
parent094fd21ceab111900c518dfad874b434c81e62ee (diff)
downloadopenshift-75dcc04f40548aa93d175567de09f06f41f9c095.tar.gz
openshift-75dcc04f40548aa93d175567de09f06f41f9c095.tar.bz2
openshift-75dcc04f40548aa93d175567de09f06f41f9c095.tar.xz
openshift-75dcc04f40548aa93d175567de09f06f41f9c095.zip
Ensure etcd client certs are regenerated with embedded etcd.
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/common/openshift-cluster/redeploy-certificates/masters.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/redeploy-certificates/masters.yml b/playbooks/common/openshift-cluster/redeploy-certificates/masters.yml
index f653a111f..c30889d64 100644
--- a/playbooks/common/openshift-cluster/redeploy-certificates/masters.yml
+++ b/playbooks/common/openshift-cluster/redeploy-certificates/masters.yml
@@ -36,6 +36,14 @@
- "openshift-master.crt"
- "openshift-master.key"
- "openshift-master.kubeconfig"
+ - name: Remove generated etcd client certificates
+ file:
+ path: "{{ openshift.common.config_base }}/master/{{ item }}"
+ state: absent
+ with_items:
+ - "master.etcd-client.crt"
+ - "master.etcd-client.key"
+ when: groups.oo_etcd_to_config | default([]) | length == 0
roles:
- role: openshift_master_certificates
openshift_master_etcd_hosts: "{{ hostvars