summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-etcd/certificates.yml
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2017-10-11 09:40:00 -0700
committerGitHub <noreply@github.com>2017-10-11 09:40:00 -0700
commit94656ef680c235f8777d48528c314357673d255c (patch)
tree158897c6f1372ec4a7f00d9771d8bb3569217c5c /playbooks/common/openshift-etcd/certificates.yml
parent7b5cc97271ae834b9f2e64ec2b17f4ea3208017f (diff)
parent49436b4222a10a53a90686a3b051b99b24f799f8 (diff)
downloadopenshift-94656ef680c235f8777d48528c314357673d255c.tar.gz
openshift-94656ef680c235f8777d48528c314357673d255c.tar.bz2
openshift-94656ef680c235f8777d48528c314357673d255c.tar.xz
openshift-94656ef680c235f8777d48528c314357673d255c.zip
Merge pull request #5672 from ingvagabund/migrate-embedded-etcd
Automatic merge from submit-queue. Migrate embedded etcd to external etcd Trello card: https://trello.com/c/9fnBfkT5/528-migrate-embedded-etcd-hosts-to-external-process?menu=filter&filter=label:committed-3.7 Tested on: - [x] embedded etcd -> external rpm etcd - [x] embedded etcd -> external docker etcd One needs to set the `openshift_image_tag` before running the migration to containerized docker etcd.
Diffstat (limited to 'playbooks/common/openshift-etcd/certificates.yml')
-rw-r--r--playbooks/common/openshift-etcd/certificates.yml29
1 files changed, 2 insertions, 27 deletions
diff --git a/playbooks/common/openshift-etcd/certificates.yml b/playbooks/common/openshift-etcd/certificates.yml
index 31a0f50d8..eb6b94f33 100644
--- a/playbooks/common/openshift-etcd/certificates.yml
+++ b/playbooks/common/openshift-etcd/certificates.yml
@@ -1,29 +1,4 @@
---
-- name: Create etcd server certificates for etcd hosts
- hosts: oo_etcd_to_config
- any_errors_fatal: true
- roles:
- - role: openshift_etcd_facts
- post_tasks:
- - include_role:
- name: etcd
- tasks_from: server_certificates
- vars:
- etcd_ca_host: "{{ groups.oo_etcd_to_config.0 }}"
- etcd_peers: "{{ groups.oo_etcd_to_config | default([], true) }}"
- etcd_certificates_etcd_hosts: "{{ groups.oo_etcd_to_config | default([], true) }}"
- r_etcd_common_etcd_runtime: "{{ openshift.common.etcd_runtime }}"
+- include: server_certificates.yml
-- 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
+- include: master_etcd_certificates.yml