summaryrefslogtreecommitdiffstats
path: root/utils/src/ooinstall/oo_config.py
diff options
context:
space:
mode:
authorSamuel Munilla <smunilla@redhat.com>2016-10-06 13:28:15 -0400
committerSamuel Munilla <smunilla@redhat.com>2016-10-20 14:35:04 -0400
commit1c7dd6d5cd94c92ebec0a0fda789f4bfffa23472 (patch)
tree2aa9c54e371e3875fe006448058b5ae6e3716775 /utils/src/ooinstall/oo_config.py
parent4a5b2dd0510ac092da44a09730a734fe9ef7e112 (diff)
downloadopenshift-1c7dd6d5cd94c92ebec0a0fda789f4bfffa23472.tar.gz
openshift-1c7dd6d5cd94c92ebec0a0fda789f4bfffa23472.tar.bz2
openshift-1c7dd6d5cd94c92ebec0a0fda789f4bfffa23472.tar.xz
openshift-1c7dd6d5cd94c92ebec0a0fda789f4bfffa23472.zip
a-o-i: Separate install and scaleup workflows
In order to simplify the quick installer logic, this moves the scaleup workflow into its own subcommand. Fixes: Bug 1339621
Diffstat (limited to 'utils/src/ooinstall/oo_config.py')
-rw-r--r--utils/src/ooinstall/oo_config.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/src/ooinstall/oo_config.py b/utils/src/ooinstall/oo_config.py
index 697ac9c08..e6bff7133 100644
--- a/utils/src/ooinstall/oo_config.py
+++ b/utils/src/ooinstall/oo_config.py
@@ -436,3 +436,11 @@ class OOConfig(object):
if host.connect_to == name:
return host
return None
+
+ def get_host_roles_set(self):
+ roles_set = set()
+ for host in self.deployment.hosts:
+ for role in host.roles:
+ roles_set.add(role)
+
+ return roles_set