Merge "Add a swap file to build machines"
[releng/builder.git] / packer / provision / kubernetes.yaml
1 ---
2 - import_playbook: ../common-packer/provision/baseline.yaml
3
4 - hosts: all
5   vars:
6     openvswitch_version: 2.8.2
7     openvswitch_checksum: sha256:87b4a7e7134a44ce1f808d3415a2244b4518c2b0b2a42fa2f8231e592f13103d
8     k8s_version: 1.9.4
9
10   pre_tasks:
11     - include_role: name=lfit.system-update
12
13   roles:
14     - lfit.docker-install
15     - fkautz.bridge-utils-install
16     - fkautz.golang-install
17     - fkautz.kubernetes-install
18     - fkautz.openvswitch-install
19
20 - hosts: all
21   tasks:
22     - name: Make example directory
23       file:
24         path: /opt/k8s-examples
25         state: directory
26       become: true
27     - name: Copy example files to example directory
28       synchronize:
29         src: ../provision/examples/
30         dest: /opt/k8s-examples/
31       become: true
32
33   post_tasks:
34     - name: System Reseal
35       script: ../common-packer/provision/system-reseal.sh
36       become: true