-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.yml
53 lines (48 loc) · 1.46 KB
/
setup.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
47
48
49
50
51
52
53
---
- hosts: all
any_errors_fatal: true
roles:
- { role: common/setup, tags: common }
# Kubernetes
- hosts: kube-cluster
any_errors_fatal: true
roles:
- { role: kubernetes/preinstall, tags: preinstall }
- { role: etcd, tags: etcd }
- { role: docker, tags: docker }
- { role: imageprovision, tags: imageprovision }
- { role: kubernetes/node, tags: node }
- hosts: kube-master
any_errors_fatal: true
roles:
- { role: kubernetes/master, tags: master }
- { role: virtual-ip, tags: master-vip,
cluster_group: 'kube-master',
cluster_vip: '{{ kube_apiserver_vip }}',
cluster_vip_netmask: '{{ kube_apiserver_vip_netmask }}',
cluster_daemons: ['kube-apiserver'] }
- hosts: kube-cluster
any_errors_fatal: true
roles:
- { role: network_plugin, tags: network }
- { role: dnsmasq, tags: dns }
- { role: skydns, tags: dns }
- { role: kubernetes/monitor, tags: monitor }
- { role: crs/setup, tags: crs }
- { role: crs/vm, tags: vm }
# Virtual IPs
- hosts: ambassador
any_errors_fatal: true
roles:
- { role: virtual-ip, tags: ambassador,
cluster_group: 'ambassador',
cluster_vip: '{{ ambassador_vip }}',
cluster_vip_netmask: 24 }
- { role: cgc-poller/setup, tags: cgc-poller }
- hosts: ids
any_errors_fatal: true
roles:
- { role: virtual-ip, tags: ids,
cluster_group: 'ids',
cluster_vip: '{{ ids_vip }}',
cluster_vip_netmask: 24 }