f106bf5bc4
Squashed commits: [f9355ea
] Swap order in which we reload docker/socket [2ca6819
] Reload docker.socket after installing flannel on coreos Workaround for #569 [9f976e5
] Vagrantfile: setup proxy inside virtual machines In corporate networks, it is good to pre-configure proxy variables. [9d7142f
] Vagrantfile: use Ubuntu 16.04 LTS Use recent supported version of Ubuntu for local development setup with Vagrant. [50f77cc
] Add CI test layouts * Drop Wily from test matrix * Replace the Wily cases dropped with extra cases to test separate roles deployment Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com> [03e162b
] Update OWNERS [c7b00ca
] Use tar+register instead of copy/slurp for distributing tokens and certs Related bug: https://github.com/ansible/ansible/issues/15405 Uses tar and register because synchronize module cannot sudo on the remote side correctly and copy is too slow. This patch dramatically cuts down the number of tasks to process for cert synchronization. [2778ac6
] Add new var skip_dnsmasq_k8s If skip_dnsmasq is set, it will still not set up dnsmasq k8s pod. This enables independent setup of resolvconf section before kubelet is up.
33 lines
1 KiB
YAML
33 lines
1 KiB
YAML
---
|
|
- hosts: localhost
|
|
become: false
|
|
gather_facts: no
|
|
vars:
|
|
cloud_machine_type: g1-small
|
|
|
|
tasks:
|
|
- name: replace_test_id
|
|
set_fact:
|
|
test_name: "{{test_id |regex_replace('\\.', '-')}}"
|
|
|
|
- name: Create gce instances
|
|
gce:
|
|
instance_names: "k8s-{{test_name}}-1,k8s-{{test_name}}-2,k8s-{{test_name}}-3"
|
|
machine_type: "{{ cloud_machine_type }}"
|
|
image: "{{ cloud_image }}"
|
|
service_account_email: "{{ gce_service_account_email }}"
|
|
pem_file: "{{ gce_pem_file }}"
|
|
project_id: "{{ gce_project_id }}"
|
|
zone: "{{cloud_region}}"
|
|
metadata: '{"test_id": "{{test_id}}", "network": "{{kube_network_plugin}}"}'
|
|
tags: "build-{{test_name}},{{kube_network_plugin}}"
|
|
register: gce
|
|
|
|
- name: Template the inventory
|
|
template:
|
|
src: ../templates/inventory-gce.j2
|
|
dest: "{{ inventory_path }}"
|
|
|
|
- name: Wait for SSH to come up
|
|
wait_for: host={{item.public_ip}} port=22 delay=10 timeout=180 state=started
|
|
with_items: "{{gce.instance_data}}"
|