From c246e67d18e08fab7dcbf40881b262e55e82c351 Mon Sep 17 00:00:00 2001 From: Samuel Munilla Date: Wed, 20 Jul 2016 10:01:43 -0400 Subject: a-o-i: Write Role variable groups Correct an error in the way we're writing out the variable group tags for host roles. --- utils/src/ooinstall/openshift_ansible.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'utils/src') diff --git a/utils/src/ooinstall/openshift_ansible.py b/utils/src/ooinstall/openshift_ansible.py index 8f7cf07e7..352955026 100644 --- a/utils/src/ooinstall/openshift_ansible.py +++ b/utils/src/ooinstall/openshift_ansible.py @@ -164,7 +164,8 @@ def write_inventory_vars(base_inventory, multiple_masters, proxy): for name, role_obj in CFG.deployment.roles.iteritems(): if role_obj.variables: - base_inventory.write("{}:vars".format(name)) + group_name = ROLES_TO_GROUPS_MAP.get(name, name) + base_inventory.write("\n[{}:vars]\n".format(group_name)) for variable, value in role_obj.variables.iteritems(): inventory_var = VARIABLES_MAP.get(variable, variable) if value: -- cgit v1.2.3