-
Notifications
You must be signed in to change notification settings - Fork 1
/
mesos.yml
51 lines (40 loc) · 1.14 KB
/
mesos.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
---
- hosts: master
remote_user: ubuntu
vars:
cluster_group: master
pre_tasks:
- name: Install docker.io
package: name="docker.io" state="installed"
roles:
- role: ansible-mesos
mesos_install_mode: "master-slave"
mesos_ip: "{{ ansible_host }}"
mesos_slave_additional_configs:
- name: "JAVA_OPTS"
value: "'-Xmx1536m -Xms1024m'"
java_packages:
- openjdk-8-jdk
tasks:
# Start Mesos
- service: name="{{ item }}" state=started
with_items:
- mesos-master
- mesos-slave
# Verify Mesos
- shell: /usr/share/zookeeper/bin/zkCli.sh ls /
register: zkcli_status
- name: Check if marathon is registered in ZooKeeper
debug: var=zkcli_status
- shell: "netstat -tulnp | grep mesos"
changed_when: False
register: meso_status_ports
- name: Mesos port binding status
debug: var=meso_status_ports.stdout_lines
- name: Test for Mesos master endpoint
uri:
url: "http://{{ ansible_host }}:5050/"
method: GET
register: response
- name: Mesos master url check
debug: var=response