summaryrefslogtreecommitdiffstats
path: root/utils/src/ooinstall/cli_installer.py
diff options
context:
space:
mode:
authorSamuel Munilla <smunilla@redhat.com>2016-07-29 14:17:06 -0400
committerSamuel Munilla <smunilla@redhat.com>2016-07-29 15:22:44 -0400
commit1b98effd4b656ce884d24d6382b4294cb21e911b (patch)
treeacbeb2005734dca4a39008facbb8d594bed4c971 /utils/src/ooinstall/cli_installer.py
parentc70525677eed8818602d2a6db080e009689c0ca3 (diff)
downloadopenshift-1b98effd4b656ce884d24d6382b4294cb21e911b.tar.gz
openshift-1b98effd4b656ce884d24d6382b4294cb21e911b.tar.bz2
openshift-1b98effd4b656ce884d24d6382b4294cb21e911b.tar.xz
openshift-1b98effd4b656ce884d24d6382b4294cb21e911b.zip
a-o-i: Better inventory group handling
A more dynamic and flexible method of writing out host groups to the ansible inventory file. To accompany this, in the quick-installer interactive mode the etcd role is automatically applied to any masters. Anyone hand writing the quick installer config will now have to explicitly specify which hosts will be etcd. Fixes #2200
Diffstat (limited to 'utils/src/ooinstall/cli_installer.py')
-rw-r--r--utils/src/ooinstall/cli_installer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/src/ooinstall/cli_installer.py b/utils/src/ooinstall/cli_installer.py
index 9fbb61a46..b9750fad1 100644
--- a/utils/src/ooinstall/cli_installer.py
+++ b/utils/src/ooinstall/cli_installer.py
@@ -121,7 +121,7 @@ http://docs.openshift.com/enterprise/latest/architecture/infrastructure_componen
click.echo(message)
hosts = []
- roles = set(['master', 'node', 'storage'])
+ roles = set(['master', 'node', 'storage', 'etcd'])
more_hosts = True
num_masters = 0
while more_hosts:
@@ -133,6 +133,7 @@ http://docs.openshift.com/enterprise/latest/architecture/infrastructure_componen
if not masters_set:
if click.confirm('Will this host be an OpenShift Master?'):
host_props['roles'].append('master')
+ host_props['roles'].append('etcd')
num_masters += 1
if oo_cfg.settings['variant_version'] == '3.0':