summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster
diff options
context:
space:
mode:
authorjawed <jawed.khelil@amadeus.com>2017-01-05 15:26:55 +0100
committerjawed <jawed.khelil@amadeus.com>2017-06-15 16:53:39 +0200
commitcd269f075b557e19ce5c0da33d1e2494e3bed9b7 (patch)
treed201a8ae7ce640854d46cb1f768dee2ae0aa731d /playbooks/common/openshift-cluster
parent58960f7599c564c8e72ae8afb8d5a3804a4d7737 (diff)
downloadopenshift-cd269f075b557e19ce5c0da33d1e2494e3bed9b7.tar.gz
openshift-cd269f075b557e19ce5c0da33d1e2494e3bed9b7.tar.bz2
openshift-cd269f075b557e19ce5c0da33d1e2494e3bed9b7.tar.xz
openshift-cd269f075b557e19ce5c0da33d1e2494e3bed9b7.zip
add etcd scaleup playbook
Diffstat (limited to 'playbooks/common/openshift-cluster')
-rw-r--r--playbooks/common/openshift-cluster/evaluate_groups.yml15
1 files changed, 12 insertions, 3 deletions
diff --git a/playbooks/common/openshift-cluster/evaluate_groups.yml b/playbooks/common/openshift-cluster/evaluate_groups.yml
index c28ce4c14..0f5bd4a53 100644
--- a/playbooks/common/openshift-cluster/evaluate_groups.yml
+++ b/playbooks/common/openshift-cluster/evaluate_groups.yml
@@ -5,10 +5,10 @@
become: no
gather_facts: no
tasks:
- - name: Evaluate groups - g_etcd_hosts required
+ - name: Evaluate groups - g_etcd_hosts or g_new_etcd_hosts required
fail:
- msg: This playbook requires g_etcd_hosts to be set
- when: g_etcd_hosts is not defined
+ msg: This playbook requires g_etcd_hosts or g_new_etcd_hosts to be set
+ when: "{{ g_etcd_hosts is not defined and g_new_etcd_hosts is not defined}}"
- name: Evaluate groups - g_master_hosts or g_new_master_hosts required
fail:
@@ -67,6 +67,15 @@
when: g_master_hosts|length > 0
changed_when: no
+ - name: Evaluate oo_new_etcd_to_config
+ add_host:
+ name: "{{ item }}"
+ groups: oo_new_etcd_to_config
+ ansible_ssh_user: "{{ g_ssh_user | default(omit) }}"
+ ansible_become: "{{ g_sudo | default(omit) }}"
+ with_items: "{{ g_new_etcd_hosts | default([]) }}"
+ changed_when: no
+
- name: Evaluate oo_masters_to_config
add_host:
name: "{{ item }}"