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

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

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

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

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