From 3fa172f84734cfa7f24cfd3eae1fefdf38b4bbec Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 18 May 2020 09:27:08 -0700 Subject: [PATCH] openshift: setup the infra labeled nodes correctly so we can run infra services Signed-off-by: Kevin Fenzi --- .../templates/cluster-inventory-iad2-prod.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/ansible-ansible-openshift-ansible/templates/cluster-inventory-iad2-prod.j2 b/roles/ansible-ansible-openshift-ansible/templates/cluster-inventory-iad2-prod.j2 index fffda57f20..e41eef937a 100644 --- a/roles/ansible-ansible-openshift-ansible/templates/cluster-inventory-iad2-prod.j2 +++ b/roles/ansible-ansible-openshift-ansible/templates/cluster-inventory-iad2-prod.j2 @@ -29,6 +29,11 @@ {{ host }} openshift_node_group_name='node-config-compute' {% endif %} {% endfor %} +{% for host in groups['os_infra_nodes'] %} +{% if hostvars[host].datacenter == 'iad2' %} +{{ host }} openshift_node_group_name='node-config-infra' +{% endif %} +{% endfor %} #[nfs] #ose3-master1.test.example.com