summaryrefslogtreecommitdiffstats
path: root/roles/static_inventory/templates/inventory.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/static_inventory/templates/inventory.j2')
-rw-r--r--roles/static_inventory/templates/inventory.j210
1 files changed, 9 insertions, 1 deletions
diff --git a/roles/static_inventory/templates/inventory.j2 b/roles/static_inventory/templates/inventory.j2
index ba806f286..9d129cf10 100644
--- a/roles/static_inventory/templates/inventory.j2
+++ b/roles/static_inventory/templates/inventory.j2
@@ -19,6 +19,11 @@
#[all:vars]
# For all group_vars, see ./group_vars/all.yml
+[infra_hosts:vars]
+openshift_node_labels={{ openshift_cluster_node_labels.infra | to_json | quote }}
+
+[app:vars]
+openshift_node_labels={{ openshift_cluster_node_labels.app | to_json | quote }}
# Create an OSEv3 group that contains the master, nodes, etcd, and lb groups.
# The lb group lets Ansible configure HAProxy as the load balancing solution.
@@ -28,7 +33,6 @@ OSEv3
dns
[OSEv3:children]
-masters
nodes
etcd
@@ -54,6 +58,9 @@ nodes.{{ stack_name }}
[infra_hosts:children]
infra.{{ stack_name }}
+[app:children]
+nodes.{{ stack_name }}
+
[dns:children]
dns.{{ stack_name }}
@@ -62,6 +69,7 @@ dns.{{ stack_name }}
[etcd.{{ stack_name }}]
[infra.{{ stack_name }}]
[nodes.{{ stack_name }}]
+[app.{{ stack_name }}]
[dns.{{ stack_name }}]
# BEGIN Autogenerated groups