summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2015-11-16 15:10:47 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2015-11-16 15:10:47 -0500
commit56bfd1e0cd39c0cc5b3bd52113e634f3588eb14f (patch)
tree5a08fca88e33f198b88260c9f12aaae11ef4cb3f /utils
parent5b095d9fe0cff133d3f9b0557b3d06a892c1df71 (diff)
parentb73a8d6f931390c920fafcc1534a1bb429ddb6a9 (diff)
downloadopenshift-56bfd1e0cd39c0cc5b3bd52113e634f3588eb14f.tar.gz
openshift-56bfd1e0cd39c0cc5b3bd52113e634f3588eb14f.tar.bz2
openshift-56bfd1e0cd39c0cc5b3bd52113e634f3588eb14f.tar.xz
openshift-56bfd1e0cd39c0cc5b3bd52113e634f3588eb14f.zip
Merge pull request #907 from smunilla/single_master
atomic-openshift-installer: Temporarily restrict to single master
Diffstat (limited to 'utils')
-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 = []