diff options
author | Samuel Munilla <smunilla@redhat.com> | 2016-11-10 08:38:05 -0500 |
---|---|---|
committer | Samuel Munilla <smunilla@redhat.com> | 2016-11-10 12:55:09 -0500 |
commit | 539446529c347500f547da8be34757dbe59b79f7 (patch) | |
tree | 40d61f2a81e2fcabfdaf03c5d63585427205e9cb /utils/src | |
parent | a052d498950f473f2b854de25468aca516c4447d (diff) | |
download | openshift-539446529c347500f547da8be34757dbe59b79f7.tar.gz openshift-539446529c347500f547da8be34757dbe59b79f7.tar.bz2 openshift-539446529c347500f547da8be34757dbe59b79f7.tar.xz openshift-539446529c347500f547da8be34757dbe59b79f7.zip |
Update override cluster_hostname
Update the default for the override prompt and set both
openshift_master_cluster_hostname and
openshift_master_cluster_public_hostname
Diffstat (limited to 'utils/src')
-rw-r--r-- | utils/src/ooinstall/cli_installer.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/src/ooinstall/cli_installer.py b/utils/src/ooinstall/cli_installer.py index 8470fb527..7e5ad4144 100644 --- a/utils/src/ooinstall/cli_installer.py +++ b/utils/src/ooinstall/cli_installer.py @@ -318,6 +318,7 @@ hostname. def set_cluster_hostname(oo_cfg): + first_master = next((host for host in oo_cfg.deployment.hosts if host.is_master()), None) message = """ You have chosen to install a single master cluster (non-HA). @@ -329,8 +330,9 @@ If you want to override the cluster host name now to something other than the de """ click.echo(message) cluster_hostname = click.prompt('Enter hostname or IP address', - default='') + default=str(first_master)) oo_cfg.deployment.variables['openshift_master_cluster_hostname'] = cluster_hostname + oo_cfg.deployment.variables['openshift_master_cluster_public_hostname'] = cluster_hostname def collect_storage_host(hosts): |