-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook.yml
69 lines (59 loc) · 2.24 KB
/
playbook.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: mesos_masters
remote_user: ubuntu
become: yes
become_method: sudo
roles:
- role: ansible-ntp
- role: ansible-zookeeper
zookeeper_hosts: "{{ mesos_master_hosts }}"
- role: ansible-mesos
mesos_install_mode: master
mesos_work_dir: "/mnt/mesos"
mesos_quorum: 1
zookeeper_hostnames: "{{ groups.mesos_masters | join(':' + zookeeper_client_port + ',') }}:{{ zookeeper_client_port }}"
mesos_hostname: "{{ ansible_default_ipv4.address }}"
mesos_version: "{{ mesos_version }}"
mesos_package_version: "{{ mesos_package_version }}"
- role: ansible-mesos-dns
mesos_dns_install_mode: server
mesos_master_hosts: "{{ mesos_master_hosts }}"
zookeeper_hosts: "{{ groups.mesos_masters | join(':' + zookeeper_client_port + ',') }}:{{ zookeeper_client_port }}"
- role: ansible-java
use_openjdk_ppa: true
java_version: "8"
java_register_alternative: true
- role: ansible-haproxy
- role: ansible-marathon
zookeeper_hostnames: "{{ groups.mesos_masters | join(':' + zookeeper_client_port + ',') }}:{{ zookeeper_client_port }}"
marathon_version: "{{ marathon_version }}"
marathon_additional_configs:
- name: enable_features
value: external_volumes
- name: mesos_authentication_principal
value: marathon
- name: mesos_role
value: marathon
- hosts: mesos_workers
remote_user: ubuntu
become: yes
become_method: sudo
roles:
- role: ansible-ntp
- role: ansible-docker
docker_opts: '"-g /mnt/docker"'
- role: ansible-mesos
mesos_install_mode: slave
mesos_work_dir: "/mnt/mesos"
mesos_quorum: 1
mesos_hostname: "{{ ansible_default_ipv4.address }}"
zookeeper_hostnames: "{{ groups.mesos_masters | join(':' + zookeeper_client_port + ',') }}:{{ zookeeper_client_port }}"
mesos_containerizers: "docker,mesos"
mesos_version: "{{ mesos_version }}"
mesos_package_version: "{{ mesos_package_version }}"
mesos_slave_additional_configs:
- name: ATTRIBUTES
value: '"node_type:{{ mesos_node_type }}"'
- role: ansible-mesos-dns
mesos_dns_install_mode: client
mesos_dns_hosts: "{{ mesos_master_hosts }}"