summaryrefslogtreecommitdiffstats
path: root/utils/src
diff options
context:
space:
mode:
authorSamuel Munilla <smunilla@redhat.com>2015-11-16 14:45:35 -0500
committerSamuel Munilla <smunilla@redhat.com>2015-11-16 14:55:35 -0500
commitb73a8d6f931390c920fafcc1534a1bb429ddb6a9 (patch)
tree5a08fca88e33f198b88260c9f12aaae11ef4cb3f /utils/src
parent5b095d9fe0cff133d3f9b0557b3d06a892c1df71 (diff)
downloadopenshift-b73a8d6f931390c920fafcc1534a1bb429ddb6a9.tar.gz
openshift-b73a8d6f931390c920fafcc1534a1bb429ddb6a9.tar.bz2
openshift-b73a8d6f931390c920fafcc1534a1bb429ddb6a9.tar.xz
openshift-b73a8d6f931390c920fafcc1534a1bb429ddb6a9.zip
atomic-openshift-installer: Temporarily restrict to single master
For now, we should restrict the quick installer to a single master. This should change in the near future.
Diffstat (limited to 'utils/src')
-rw-r--r--utils/src/ooinstall/cli_installer.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/utils/src/ooinstall/cli_installer.py b/utils/src/ooinstall/cli_installer.py
index 3c3f45c3b..d9d3dd80c 100644
--- a/utils/src/ooinstall/cli_installer.py
+++ b/utils/src/ooinstall/cli_installer.py
@@ -71,7 +71,7 @@ def delete_hosts(hosts):
click.echo("\"{}\" doesn't coorespond to any valid input.".format(del_idx))
return hosts, None
-def collect_hosts():
+def collect_hosts(master_set=False):
"""
Collect host information from user. This will later be filled in using
ansible.
@@ -108,8 +108,10 @@ http://docs.openshift.com/enterprise/latest/architecture/infrastructure_componen
value_proc=validate_prompt_hostname)
host_props['connect_to'] = hostname_or_ip
-
- host_props['master'] = click.confirm('Will this host be an OpenShift Master?')
+ if not master_set:
+ is_master = click.confirm('Will this host be an OpenShift Master?')
+ host_props['master'] = is_master
+ master_set = True
host_props['node'] = True
#TODO: Reenable this option once container installs are out of tech preview
@@ -308,7 +310,7 @@ def collect_new_nodes():
Add new nodes here
"""
click.echo(message)
- return collect_hosts()
+ return collect_hosts(True)
def get_installed_hosts(hosts, callback_facts):
installed_hosts = []