summaryrefslogtreecommitdiffstats
path: root/playbooks/openshift-etcd/private/master_etcd_certificates.yml
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-11-16 11:31:29 -0500
committerRussell Teague <rteague@redhat.com>2017-11-16 14:28:30 -0500
commit79939ca092b9ee0fe31e5964102c60fca73da568 (patch)
treeab3da0b6e4fe90215d18d28fbd58b79c24e501c6 /playbooks/openshift-etcd/private/master_etcd_certificates.yml
parent7a18158c1df667d2bc45fae3ca62ed35400bedb8 (diff)
downloadopenshift-79939ca092b9ee0fe31e5964102c60fca73da568.tar.gz
openshift-79939ca092b9ee0fe31e5964102c60fca73da568.tar.bz2
openshift-79939ca092b9ee0fe31e5964102c60fca73da568.tar.xz
openshift-79939ca092b9ee0fe31e5964102c60fca73da568.zip
Playbook Consolidation - openshift-etcd
Diffstat (limited to 'playbooks/openshift-etcd/private/master_etcd_certificates.yml')
-rw-r--r--playbooks/openshift-etcd/private/master_etcd_certificates.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/playbooks/openshift-etcd/private/master_etcd_certificates.yml b/playbooks/openshift-etcd/private/master_etcd_certificates.yml
new file mode 100644
index 000000000..0a25aac57
--- /dev/null
+++ b/playbooks/openshift-etcd/private/master_etcd_certificates.yml
@@ -0,0 +1,14 @@
+---
+- name: Create etcd client certificates for master hosts
+ hosts: oo_masters_to_config
+ any_errors_fatal: true
+ roles:
+ - role: openshift_etcd_facts
+ - role: openshift_etcd_client_certificates
+ etcd_ca_host: "{{ groups.oo_etcd_to_config.0 }}"
+ etcd_cert_subdir: "openshift-master-{{ openshift.common.hostname }}"
+ etcd_cert_config_dir: "{{ openshift.common.config_base }}/master"
+ etcd_cert_prefix: "master.etcd-"
+ openshift_ca_host: "{{ groups.oo_first_master.0 }}"
+ r_etcd_common_etcd_runtime: "{{ openshift.common.etcd_runtime }}"
+ when: groups.oo_etcd_to_config is defined and groups.oo_etcd_to_config