summaryrefslogtreecommitdiffstats
path: root/playbooks/openshift-etcd/private/ca.yml
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-11-21 14:28:32 -0500
committerGitHub <noreply@github.com>2017-11-21 14:28:32 -0500
commitffff1d7465d92e7f5522da11d6fd1ae23c54fdfb (patch)
tree1d6e3abafaeee24c1b84c05d376dcaf70683c885 /playbooks/openshift-etcd/private/ca.yml
parent33350641a1377c66356f8b4b96a7011607a29b50 (diff)
parent79939ca092b9ee0fe31e5964102c60fca73da568 (diff)
downloadopenshift-ffff1d7465d92e7f5522da11d6fd1ae23c54fdfb.tar.gz
openshift-ffff1d7465d92e7f5522da11d6fd1ae23c54fdfb.tar.bz2
openshift-ffff1d7465d92e7f5522da11d6fd1ae23c54fdfb.tar.xz
openshift-ffff1d7465d92e7f5522da11d6fd1ae23c54fdfb.zip
Merge pull request #6145 from mtnbikenc/consolidate-openshift-etcd
Playbook Consolidation - openshift-etcd
Diffstat (limited to 'playbooks/openshift-etcd/private/ca.yml')
-rw-r--r--playbooks/openshift-etcd/private/ca.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/playbooks/openshift-etcd/private/ca.yml b/playbooks/openshift-etcd/private/ca.yml
new file mode 100644
index 000000000..ac5543be9
--- /dev/null
+++ b/playbooks/openshift-etcd/private/ca.yml
@@ -0,0 +1,15 @@
+---
+- name: Generate new etcd CA
+ hosts: oo_first_etcd
+ roles:
+ - role: openshift_etcd_facts
+ tasks:
+ - include_role:
+ name: etcd
+ tasks_from: ca
+ vars:
+ etcd_peers: "{{ groups.oo_etcd_to_config | default([], true) }}"
+ etcd_ca_host: "{{ groups.oo_etcd_to_config.0 }}"
+ etcd_certificates_etcd_hosts: "{{ groups.oo_etcd_to_config | default([], true) }}"
+ when:
+ - etcd_ca_setup | default(True) | bool