Browse Source

add etcd hosts for gce playbooks

Jason DeTiberus 9 năm trước cách đây
mục cha
commit
911ba46a68

+ 11 - 0
playbooks/gce/openshift-cluster/launch.yml

@@ -10,6 +10,17 @@
   - fail: msg="Deployment type not supported for gce provider yet"
   - fail: msg="Deployment type not supported for gce provider yet"
     when: deployment_type == 'enterprise'
     when: deployment_type == 'enterprise'
 
 
+  - include: ../../common/openshift-cluster/tasks/set_etcd_launch_facts.yml
+  - include: tasks/launch_instances.yml
+    vars:
+      instances: "{{ etcd_names }}"
+      cluster: "{{ cluster_id }}"
+      type: "{{ k8s_type }}"
+      g_sub_host_type: "default"
+      gce_machine_type: "{{ lookup('env', 'gce_machine_etcd_type') | default(lookup('env', 'gce_machine_type'), true) }}"
+      gce_machine_image: "{{ lookup('env', 'gce_machine_etcd_image') | default(lookup('env', 'gce_machine_image'), true) }}"
+
+
   - include: ../../common/openshift-cluster/tasks/set_master_launch_facts.yml
   - include: ../../common/openshift-cluster/tasks/set_master_launch_facts.yml
   - include: tasks/launch_instances.yml
   - include: tasks/launch_instances.yml
     vars:
     vars: