diff options
author | Andrew Butcher <abutcher@afrolegs.com> | 2016-10-21 13:07:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-21 13:07:30 -0400 |
commit | 65a478443e4c86576f99936dac3f2989c685552e (patch) | |
tree | 5215d83878a96ea82c608d9740a322af17eed21b /utils/src/ooinstall/openshift_ansible.py | |
parent | 88347f4866ed41132abb7f78fe37ac264236a395 (diff) | |
parent | 1c7dd6d5cd94c92ebec0a0fda789f4bfffa23472 (diff) | |
download | openshift-65a478443e4c86576f99936dac3f2989c685552e.tar.gz openshift-65a478443e4c86576f99936dac3f2989c685552e.tar.bz2 openshift-65a478443e4c86576f99936dac3f2989c685552e.tar.xz openshift-65a478443e4c86576f99936dac3f2989c685552e.zip |
Merge pull request #2563 from smunilla/BZ1339621
a-o-i: Separate install and scaleup workflows
Diffstat (limited to 'utils/src/ooinstall/openshift_ansible.py')
-rw-r--r-- | utils/src/ooinstall/openshift_ansible.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/utils/src/ooinstall/openshift_ansible.py b/utils/src/ooinstall/openshift_ansible.py index 80a79a6d2..764cc1e56 100644 --- a/utils/src/ooinstall/openshift_ansible.py +++ b/utils/src/ooinstall/openshift_ansible.py @@ -48,9 +48,6 @@ def set_config(cfg): def generate_inventory(hosts): global CFG - masters = [host for host in hosts if host.is_master()] - multiple_masters = len(masters) > 1 - new_nodes = [host for host in hosts if host.is_node() and host.new_host] scaleup = len(new_nodes) > 0 @@ -61,7 +58,7 @@ def generate_inventory(hosts): write_inventory_children(base_inventory, scaleup) - write_inventory_vars(base_inventory, multiple_masters, lb) + write_inventory_vars(base_inventory, lb) # write_inventory_hosts for role in CFG.deployment.roles: @@ -106,7 +103,7 @@ def write_inventory_children(base_inventory, scaleup): # pylint: disable=too-many-branches -def write_inventory_vars(base_inventory, multiple_masters, lb): +def write_inventory_vars(base_inventory, lb): global CFG base_inventory.write('\n[OSEv3:vars]\n') @@ -123,7 +120,7 @@ def write_inventory_vars(base_inventory, multiple_masters, lb): if CFG.deployment.variables['ansible_ssh_user'] != 'root': base_inventory.write('ansible_become=yes\n') - if multiple_masters and lb is not None: + if lb is not None: base_inventory.write('openshift_master_cluster_method=native\n') base_inventory.write("openshift_master_cluster_hostname={}\n".format(lb.hostname)) base_inventory.write( |