-
Notifications
You must be signed in to change notification settings - Fork 105
/
site.yml
69 lines (59 loc) · 1.73 KB
/
site.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
- hosts: all:!role=bastion
gather_facts: false
vars:
ansible_python_interpreter: "PATH=/home/core/bin:$PATH python"
tasks:
- name: Wait for ssh port to become available from bastion server.
wait_for:
port: "{{ ansible_port }}"
host: "{{ ansible_host }}"
delay: 10
timeout: 180
delegate_to: "{{ bastion_ip }}"
become: false
when: bastion_ip is defined
- name: Wait for port 22 to become available from local server.
local_action: "wait_for port={{ ansible_port }} host={{ ansible_host }} delay=10 timeout=180"
become: false
when: bastion_ip is not defined
- include: playbooks/coreos-bootstrap.yml
- hosts: all:!role=bastion
roles:
- docker
- weave
- consul
# @todo - fix vault integration with coreOS
#- vault
- hosts: all:!role=bastion
roles:
- { role: cadvisor, when: cadvisor_enabled|bool }
- { role: prometheus, when: prometheus_enabled|bool }
environment:
DOCKER_HOST: "{{ docker_host }}"
- hosts: mesos_masters
roles:
- zookeeper
- { role: mesos, mesos_install_mode: "master" }
- mesos_consul
- { role: marathon, when: marathon_enabled|bool }
environment:
DOCKER_HOST: "{{ docker_host }}"
- hosts: mesos_agents
roles:
- { role: mesos, mesos_install_mode: "agent" }
environment:
DOCKER_HOST: "{{ docker_host }}"
- hosts: load_balancers
roles:
- { role: traefik, tags: ["traefik"] }
environment:
DOCKER_HOST: "{{ docker_host }}"
# Installing DCOS frameworks and apps from one master.
- include: dcos.yml
- hosts: log_servers
roles:
- { role: logstash, when: elk_enabled|bool }
environment:
DOCKER_HOST: "{{ docker_host }}"
- include: contrib-plugins/playbook.yml