-
Notifications
You must be signed in to change notification settings - Fork 105
/
rolling-upgrade-maintenance.yml
41 lines (37 loc) · 1.38 KB
/
rolling-upgrade-maintenance.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
---
- hosts: all:!role=bastion
gather_facts: True
tasks:
- name: Wait for ssh port to become available from bastion server.
wait_for:
port: "{{ ansible_port }}"
host: "{{ ansible_host }}"
delay: 10
timeout: 90
delegate_to: "{{ bastion_ip }}"
become: False
when: bastion_ip is defined
tags: ["facts"]
- name: Wait for port 22 to become available from local server.
local_action: "wait_for port={{ ansible_port }} host={{ ansible_host }} delay=10 timeout=90"
become: False
when: bastion_ip is not defined
tags: ["facts"]
- hosts: mesos_masters
serial: "{{ serial | default(1) }}"
roles:
- { role: zookeeper, tags: ["zookeeper"] }
- { role: docker, tags: ["docker"] }
- { role: weave, tags: ["weave"], meta: "flush_handlers" }
- { role: consul, tags: ["consul"] }
- { role: mesos_consul, tags: ["mesos_consul"] }
- hosts: mesos_agents
serial: "{{ serial | default(1) }}"
roles:
- { role: mesos_maintenance, tags: ["mesos_maintenance"], mesos_maintenance_start: true }
- { role: docker, tags: ["docker"] }
- { role: weave, tags: ["weave"] }
- { role: consul, tags: ["consul"] }
- { role: mesos_consul, tags: ["mesos_consul"] }
- { role: traefik, tags: ["traefik"] }
- { role: mesos_maintenance, tags: ["mesos_maintenance"], mesos_maintenance_complete: true }