summaryrefslogtreecommitdiffstats
path: root/utils/src/ooinstall/cli_installer.py
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2015-11-20 09:19:16 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2015-11-20 09:19:16 -0500
commit9e9bd4407028549b9e2a3b3343f1e7b785a78b23 (patch)
treeb49a5d07fe3d30b57e8ed547b8baf4ff86134779 /utils/src/ooinstall/cli_installer.py
parent79763da797333960ebf90119c9561b890fbd0a1a (diff)
parentc6b7ba8b0017af0875bd912ad0e83fb3d5879591 (diff)
downloadopenshift-9e9bd4407028549b9e2a3b3343f1e7b785a78b23.tar.gz
openshift-9e9bd4407028549b9e2a3b3343f1e7b785a78b23.tar.bz2
openshift-9e9bd4407028549b9e2a3b3343f1e7b785a78b23.tar.xz
openshift-9e9bd4407028549b9e2a3b3343f1e7b785a78b23.zip
Merge pull request #902 from dgoodwin/rpm-test-fix
Default to OSE 3.1 in interactive installer instead of 3.0.
Diffstat (limited to 'utils/src/ooinstall/cli_installer.py')
-rw-r--r--utils/src/ooinstall/cli_installer.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/src/ooinstall/cli_installer.py b/utils/src/ooinstall/cli_installer.py
index f34255234..a1632ed0c 100644
--- a/utils/src/ooinstall/cli_installer.py
+++ b/utils/src/ooinstall/cli_installer.py
@@ -207,6 +207,7 @@ def get_variant_and_version():
message = "%s\n(%s) %s %s" % (message, i, variant.description,
version.name)
i = i + 1
+ message = "%s\n" % message
click.echo(message)
response = click.prompt("Choose a variant from above: ", default=1)
@@ -433,7 +434,8 @@ def get_hosts_to_run_on(oo_cfg, callback_facts, unattended, force, verbose):
# Main CLI entrypoint, not much we can do about too many arguments.
def cli(ctx, unattended, configuration, ansible_playbook_directory, ansible_config, ansible_log_path, verbose):
"""
- atomic-openshift-installer makes the process for installing OSE or AEP easier by interactively gathering the data needed to run on each host.
+ atomic-openshift-installer makes the process for installing OSE or AEP
+ easier by interactively gathering the data needed to run on each host.
It can also be run in unattended mode if provided with a configuration file.
Further reading: https://docs.openshift.com/enterprise/latest/install_config/install/quick_install.html
@@ -460,7 +462,8 @@ def cli(ctx, unattended, configuration, ansible_playbook_directory, ansible_conf
if ctx.obj['ansible_config']:
oo_cfg.settings['ansible_config'] = ctx.obj['ansible_config']
- elif os.path.exists(DEFAULT_ANSIBLE_CONFIG):
+ elif 'ansible_config' not in oo_cfg.settings and \
+ os.path.exists(DEFAULT_ANSIBLE_CONFIG):
# If we're installed by RPM this file should exist and we can use it as our default:
oo_cfg.settings['ansible_config'] = DEFAULT_ANSIBLE_CONFIG