diff options
author | Seth Jennings <sjenning@redhat.com> | 2016-11-04 11:01:14 -0500 |
---|---|---|
committer | Seth Jennings <sjenning@redhat.com> | 2016-11-04 15:32:56 -0500 |
commit | 2659a4f891d22dd820bd30f8d3b1dbd8793abb7a (patch) | |
tree | 905406cfa7202c0379c3f7d9f3586af3f9252c32 /roles/openshift_facts/library | |
parent | 35db78f391f41e962903dbe9174efc7052948a15 (diff) | |
download | openshift-2659a4f891d22dd820bd30f8d3b1dbd8793abb7a.tar.gz openshift-2659a4f891d22dd820bd30f8d3b1dbd8793abb7a.tar.bz2 openshift-2659a4f891d22dd820bd30f8d3b1dbd8793abb7a.tar.xz openshift-2659a4f891d22dd820bd30f8d3b1dbd8793abb7a.zip |
default to multizone GCE config
Diffstat (limited to 'roles/openshift_facts/library')
-rwxr-xr-x | roles/openshift_facts/library/openshift_facts.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py index 6c045e7ab..95325610d 100755 --- a/roles/openshift_facts/library/openshift_facts.py +++ b/roles/openshift_facts/library/openshift_facts.py @@ -1060,6 +1060,7 @@ values provided as a list. Hence the gratuitous use of ['foo'] below. kubelet_args['cloud-config'] = [cloud_cfg_path + '/openstack.conf'] if facts['cloudprovider']['kind'] == 'gce': kubelet_args['cloud-provider'] = ['gce'] + kubelet_args['cloud-config'] = [cloud_cfg_path + '/gce.conf'] # Automatically add node-labels to the kubeletArguments # parameter. See BZ1359848 for additional details. @@ -1102,6 +1103,7 @@ def build_controller_args(facts): controller_args['cloud-config'] = [cloud_cfg_path + '/openstack.conf'] if facts['cloudprovider']['kind'] == 'gce': controller_args['cloud-provider'] = ['gce'] + kubelet_args['cloud-config'] = [cloud_cfg_path + '/gce.conf'] if controller_args != {}: facts = merge_facts({'master': {'controller_args': controller_args}}, facts, [], []) return facts @@ -1122,6 +1124,7 @@ def build_api_server_args(facts): api_server_args['cloud-config'] = [cloud_cfg_path + '/openstack.conf'] if facts['cloudprovider']['kind'] == 'gce': api_server_args['cloud-provider'] = ['gce'] + kubelet_args['cloud-config'] = [cloud_cfg_path + '/gce.conf'] if api_server_args != {}: facts = merge_facts({'master': {'api_server_args': api_server_args}}, facts, [], []) return facts |