Update gce CI (#1748)

Use image family for picking latest coreos image
Update python deps
This commit is contained in:
Matthew Mosesohn
2017-10-05 16:52:28 +01:00
committed by GitHub
parent f14f04c5ea
commit 994324e19c
4 changed files with 20 additions and 16 deletions

View File

@@ -5,7 +5,7 @@
vars:
cloud_machine_type: g1-small
mode: default
preemptible: no
tasks:
- name: replace_test_id
set_fact:
@@ -25,8 +25,8 @@
gce:
instance_names: "{{instance_names}}"
machine_type: "{{ cloud_machine_type }}"
image: "{{ cloud_image }}"
preemptible: no
image_family: "{{ cloud_image }}"
preemptible: "{{ preemptible }}"
service_account_email: "{{ gce_service_account_email }}"
pem_file: "{{ gce_pem_file | default(omit)}}"
credentials_file: "{{gce_credentials_file | default(omit)}}"
@@ -34,6 +34,8 @@
zone: "{{cloud_region}}"
metadata: '{"test_id": "{{test_id}}", "network": "{{kube_network_plugin}}", "startup-script": "{{startup_script}}"}'
tags: "build-{{test_name}},{{kube_network_plugin}}"
ip_forward: yes
service_account_permissions: ['compute-rw']
register: gce
- name: Add instances to host group

View File

@@ -1,5 +1,5 @@
-r ../requirements.txt
yamllint
apache-libcloud==0.20.1
apache-libcloud==2.2.1
boto==2.9.0
tox