summaryrefslogtreecommitdiffstats
path: root/roles/openshift_cloud_provider/tasks/gce.yml
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-11-07 07:46:45 -0500
committerGitHub <noreply@github.com>2016-11-07 07:46:45 -0500
commitb97196e3319c5ec00fdd9998aba51b4877d3ada9 (patch)
tree1c45a67bca0441da9f5bc1b34bc57d68014948f7 /roles/openshift_cloud_provider/tasks/gce.yml
parent4698b0c696b9d9cf2b8dbff5eaa4fcaa545093cd (diff)
parent2659a4f891d22dd820bd30f8d3b1dbd8793abb7a (diff)
downloadopenshift-b97196e3319c5ec00fdd9998aba51b4877d3ada9.tar.gz
openshift-b97196e3319c5ec00fdd9998aba51b4877d3ada9.tar.bz2
openshift-b97196e3319c5ec00fdd9998aba51b4877d3ada9.tar.xz
openshift-b97196e3319c5ec00fdd9998aba51b4877d3ada9.zip
Merge pull request #2728 from sjenning/fix-gce-multizone
default to multizone GCE config
Diffstat (limited to 'roles/openshift_cloud_provider/tasks/gce.yml')
-rw-r--r--roles/openshift_cloud_provider/tasks/gce.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/openshift_cloud_provider/tasks/gce.yml b/roles/openshift_cloud_provider/tasks/gce.yml
new file mode 100644
index 000000000..14ad8ba94
--- /dev/null
+++ b/roles/openshift_cloud_provider/tasks/gce.yml
@@ -0,0 +1,16 @@
+# Work around ini_file create option in 2.2 which defaults to no
+- name: Create cloud config file
+ file:
+ dest: "{{ openshift.common.config_base }}/cloudprovider/gce.conf"
+ state: touch
+ mode: 0660
+ owner: root
+ group: root
+ changed_when: false
+
+- name: Configure GCE cloud provider
+ ini_file:
+ dest: "{{ openshift.common.config_base }}/cloudprovider/gce.conf"
+ section: Global
+ option: multizone
+ value: "true"