summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-08-02 15:05:25 -0400
committerGitHub <noreply@github.com>2017-08-02 15:05:25 -0400
commit1765ce2bb6ab28a14c60dd5c268ec97ed788a1c1 (patch)
treefe9a859bed719346866f8b60d7557493bef1b83a /playbooks/common/openshift-cluster
parente8b99e303e94ae38a9dfce59a36413c88bcfc57c (diff)
parentcd269f075b557e19ce5c0da33d1e2494e3bed9b7 (diff)
downloadopenshift-1765ce2bb6ab28a14c60dd5c268ec97ed788a1c1.tar.gz
openshift-1765ce2bb6ab28a14c60dd5c268ec97ed788a1c1.tar.bz2
openshift-1765ce2bb6ab28a14c60dd5c268ec97ed788a1c1.tar.xz
openshift-1765ce2bb6ab28a14c60dd5c268ec97ed788a1c1.zip
Merge pull request #3043 from jkhelil/scaleup_etcd
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 baca72c58..8accda8c7 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 }}"