summaryrefslogtreecommitdiffstats
path: root/utils/src
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-07-20 11:30:28 -0400
committerGitHub <noreply@github.com>2016-07-20 11:30:28 -0400
commita7e6148bb5c5fa9746de5c351a6b0a4d065d82d4 (patch)
treeba40a0c027a5b90da7bc71fbcc8efc83b1d1a377 /utils/src
parente56778743abfc0d349ec8bead684389a7c253cc2 (diff)
parentc246e67d18e08fab7dcbf40881b262e55e82c351 (diff)
downloadopenshift-a7e6148bb5c5fa9746de5c351a6b0a4d065d82d4.tar.gz
openshift-a7e6148bb5c5fa9746de5c351a6b0a4d065d82d4.tar.bz2
openshift-a7e6148bb5c5fa9746de5c351a6b0a4d065d82d4.tar.xz
openshift-a7e6148bb5c5fa9746de5c351a6b0a4d065d82d4.zip
Merge pull request #2185 from smunilla/role_vars
a-o-i: Write Role variable groups
Diffstat (limited to 'utils/src')
-rw-r--r--utils/src/ooinstall/openshift_ansible.py3
1 files changed, 2 insertions, 1 deletions
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: