summaryrefslogtreecommitdiffstats
path: root/playbooks/libvirt/openshift-cluster/cluster_hosts.yml
blob: 198a3e4e2b11b2d28e03ce1a28817de4925522bb (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-node']|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([]) }}"