summaryrefslogtreecommitdiffstats
path: root/playbooks/init/vars
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-11-03 17:28:45 -0400
committerRussell Teague <rteague@redhat.com>2017-11-15 13:35:10 -0500
commite5f4823d6e4191367178f743ddd5e0885598e8cf (patch)
tree10877c2ae156d1362f1394177cb02942951db24e /playbooks/init/vars
parentc49dd26ba094b96da1e234d8ea355861a5220c99 (diff)
downloadopenshift-e5f4823d6e4191367178f743ddd5e0885598e8cf.tar.gz
openshift-e5f4823d6e4191367178f743ddd5e0885598e8cf.tar.bz2
openshift-e5f4823d6e4191367178f743ddd5e0885598e8cf.tar.xz
openshift-e5f4823d6e4191367178f743ddd5e0885598e8cf.zip
Playbook Consolidation - Initialization
Diffstat (limited to 'playbooks/init/vars')
-rw-r--r--playbooks/init/vars/cluster_hosts.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/playbooks/init/vars/cluster_hosts.yml b/playbooks/init/vars/cluster_hosts.yml
new file mode 100644
index 000000000..e807ac004
--- /dev/null
+++ b/playbooks/init/vars/cluster_hosts.yml
@@ -0,0 +1,26 @@
+---
+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([]) }}"
+
+g_new_master_hosts: "{{ groups.new_masters | default([]) }}"
+
+g_node_hosts: "{{ groups.nodes | default([]) }}"
+
+g_new_node_hosts: "{{ groups.new_nodes | default([]) }}"
+
+g_nfs_hosts: "{{ groups.nfs | default([]) }}"
+
+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_new_etcd_hosts) | union(g_lb_hosts) | union(g_nfs_hosts)
+ | union(g_new_node_hosts)| union(g_new_master_hosts)
+ | union(g_glusterfs_hosts) | union(g_glusterfs_registry_hosts)
+ | default([]) }}"