forked from mantl/mantl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubernetes.yml
52 lines (48 loc) · 1.17 KB
/
kubernetes.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
---
- hosts: localhost
gather_facts: no
tasks:
- name: check for security
when: security_enabled is not defined or not security_enabled
fail:
msg: |
Security is not enabled. Please run `security-setup` in the root
directory and re-run this playbook with the `--extra-vars`/`-e` option
pointing to your `security.yml` (e.g., `-e @security.yml`)
- hosts: all
vars:
consul_servers_group: role=control
roles:
- common
- logrotate
- docker
- etcd
- {role: flannel, tags: flannel}
- {role: dnsmasq, tags: dnsmasq}
- hosts: role=control
gather_facts: yes
vars:
# ansible groups for service configuration
roles:
- {role: k8s-master, tags: k8s}
- {role: k8s-addons, tags: k8s}
- hosts: role=worker
gather_facts: yes
vars:
haproxy_domain: mi-lb.example.com
roles:
- {role: k8s-minion, tags: k8s}
# GlusterFS has to be provisioned in reverse order from Mesos: servers then
# clients.
#- hosts: role=control
# gather_facts: no
# vars:
# glusterfs_mode: server
# roles:
# - glusterfs
#
#- hosts: role=worker
# vars:
# glusterfs_mode: client
# roles:
# - glusterfs