forked from cornelius-keller/ansible-coreos-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap_coreos.yml
46 lines (43 loc) · 1.4 KB
/
bootstrap_coreos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
- name: reboot server into rescue image
hosts: coreos
connection: local
gather_facts: no
vars:
ansible_python_interpreter: /usr/bin/python
roles:
- role: boot-rescue
- name: install coreos
hosts: coreos
user: root
gather_facts: no
roles:
- role: etcd-certificates
- role: extra-cas
- { role: install-coreos, ansible_python_interpreter: /usr/bin/python }
- role: kubernetes-certificates
- role: ceph-on-kubernetes-config
- { role: ansible-coreos-bootstrap, ansible_ssh_user: core }
- { role: cloud-config, clear_etcd_data: true, ansible_ssh_user: core }
- { role: unsafe_reboot, unsafe_reboot_dealay: 1, ansible_ssh_user: core }
- name: configure install and configure kubectl and install dns adonn
hosts: kubernetes
gather_facts: no
vars:
ansible_python_interpreter: /usr/bin/python
pre_tasks:
- name: wait for kubernetes master to come up
delegate_to: localhost
connection: local
when: inventory_hostname in groups['kubernetes-master']
wait_for:
host: "{{ inventory_hostname }}"
port: 6443
timeout: 600
roles:
- role: kubectl
- role: kubectl-config
- role: k8s-kubesystem-namespace
- { role: k8s-dns-addon }
- { role: ceph-on-kubernetes-resources, ansible_ssh_user: core, ansible_python_interpreter: /home/core/pypy/bin/python }
# - role: loadbalancer