diff options
author | jawed <jawed.khelil@amadeus.com> | 2017-01-05 15:26:55 +0100 |
---|---|---|
committer | jawed <jawed.khelil@amadeus.com> | 2017-06-15 16:53:39 +0200 |
commit | cd269f075b557e19ce5c0da33d1e2494e3bed9b7 (patch) | |
tree | d201a8ae7ce640854d46cb1f768dee2ae0aa731d /playbooks/byo | |
parent | 58960f7599c564c8e72ae8afb8d5a3804a4d7737 (diff) | |
download | openshift-cd269f075b557e19ce5c0da33d1e2494e3bed9b7.tar.gz openshift-cd269f075b557e19ce5c0da33d1e2494e3bed9b7.tar.bz2 openshift-cd269f075b557e19ce5c0da33d1e2494e3bed9b7.tar.xz openshift-cd269f075b557e19ce5c0da33d1e2494e3bed9b7.zip |
add etcd scaleup playbook
Diffstat (limited to 'playbooks/byo')
-rw-r--r-- | playbooks/byo/openshift-cluster/cluster_hosts.yml | 4 | ||||
-rw-r--r-- | playbooks/byo/openshift-etcd/scaleup.yml | 22 |
2 files changed, 25 insertions, 1 deletions
diff --git a/playbooks/byo/openshift-cluster/cluster_hosts.yml b/playbooks/byo/openshift-cluster/cluster_hosts.yml index 9d086b7b6..7a4e0cd7f 100644 --- a/playbooks/byo/openshift-cluster/cluster_hosts.yml +++ b/playbooks/byo/openshift-cluster/cluster_hosts.yml @@ -1,6 +1,8 @@ --- g_etcd_hosts: "{{ groups.etcd | default([]) }}" +g_new_etcd_hosts: "{{ groups.new_etcd | default([]) }}" + g_lb_hosts: "{{ groups.lb | default([]) }}" g_master_hosts: "{{ groups.masters | default([]) }}" @@ -18,6 +20,6 @@ g_glusterfs_hosts: "{{ groups.glusterfs | default([]) }}" g_glusterfs_registry_hosts: "{{ groups.glusterfs_registry | default(g_glusterfs_hosts) }}" g_all_hosts: "{{ g_master_hosts | union(g_node_hosts) | union(g_etcd_hosts) - | union(g_lb_hosts) | union(g_nfs_hosts) + | union(g_new_etcd_hosts) | union(g_lb_hosts) | union(g_nfs_hosts) | union(g_new_node_hosts)| union(g_new_master_hosts) | default([]) }}" diff --git a/playbooks/byo/openshift-etcd/scaleup.yml b/playbooks/byo/openshift-etcd/scaleup.yml new file mode 100644 index 000000000..f03854c2a --- /dev/null +++ b/playbooks/byo/openshift-etcd/scaleup.yml @@ -0,0 +1,22 @@ +--- +- hosts: localhost + connection: local + become: no + gather_facts: no + tasks: + - include_vars: ../../byo/openshift-cluster/cluster_hosts.yml + - add_host: + name: "{{ item }}" + groups: l_oo_all_hosts + with_items: "{{ g_all_hosts }}" + +- hosts: l_oo_all_hosts + gather_facts: no + tasks: + - include_vars: ../../byo/openshift-cluster/cluster_hosts.yml + +- include: ../../common/openshift-cluster/evaluate_groups.yml +- include: ../../common/openshift-etcd/scaleup.yml + vars: + openshift_cluster_id: "{{ cluster_id | default('default') }}" + openshift_deployment_type: "{{ deployment_type }}" |