summaryrefslogtreecommitdiffstats
path: root/playbooks/gce/openshift-cluster/cluster_hosts.yml
blob: 5cc300bbf248315bed092b33c94b190db924ecef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
g_all_hosts:     "{{ groups['tag_clusterid-' ~ cluster_id] | default([])
                    | intersect(groups['tag_environment-' ~ cluster_env] | default([])) }}"

g_etcd_hosts:    "{{ g_all_hosts | intersect(groups['tag_host-type-etcd'] | default([])) }}"

g_lb_hosts:      "{{ g_all_hosts | intersect(groups['tag_host-type-lb'] | default([])) }}"

g_nfs_hosts:     "{{ g_all_hosts | intersect(groups['tag_host-type-nfs'] | default([])) }}"

g_master_hosts:  "{{ g_all_hosts | intersect(groups['tag_host-type-master'] | default([])) }}"

g_node_hosts:    "{{ g_all_hosts | intersect(groups['tag_host-type-node'] | default([])) }}"

g_infra_hosts:   "{{ g_node_hosts | intersect(groups['tag_sub-host-type-infra'] | default([])) }}"

g_compute_hosts: "{{ g_node_hosts | intersect(groups['tag_sub-host-type-compute'] | default([])) }}"