summaryrefslogtreecommitdiffstats
path: root/playbooks/aws/openshift-cluster/cluster_hosts.yml
blob: d6b413c6f1b0cdc5ae3b59ad66801ed03e4dbced (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
g_etcd_hosts:   "{{ (groups['tag_host-type_etcd']|default([]))
                     | intersect((groups['tag_clusterid_' ~ cluster_id]|default([])))
                     | intersect((groups['tag_environment_' ~ cluster_env]|default([]))) }}"

g_lb_hosts:     "{{ (groups['tag_host-type_lb']|default([]))
                     | intersect((groups['tag_clusterid_' ~ cluster_id]|default([])))
                     | intersect((groups['tag_environment_' ~ cluster_env]|default([]))) }}"

g_master_hosts: "{{ (groups['tag_host-type_master']|default([]))
                     | intersect((groups['tag_clusterid_' ~ cluster_id]|default([])))
                     | intersect((groups['tag_environment_' ~ cluster_env]|default([]))) }}"

g_node_hosts:   "{{ (groups['tag_host-type_node']|default([]))
                     | intersect((groups['tag_clusterid_' ~ cluster_id]|default([])))
                     | intersect((groups['tag_environment_' ~ cluster_env]|default([]))) }}"

g_nfs_hosts:    "{{ (groups['tag_host-type_nfs']|default([]))
                   | intersect((groups['tag_environment_' ~ cluster_id]|default([]))) }}"

g_all_hosts:    "{{ g_master_hosts | union(g_node_hosts) | union(g_etcd_hosts)
                    | union(g_lb_hosts) | default([]) }}"