forked from xacaxulu/mesos_vagrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook.yml
70 lines (57 loc) · 1.35 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
70
---
- hosts: default
name: default
become: true
tasks:
- name: write /etc/hosts
file:
src: hostsfile
dest: /etc/hosts
tags: files
- name: write /etc/yum.conf
file:
src: yum.conf
dest: /etc/yum.conf
tags: files
- shell: rpm -Uvh http://repos.mesosphere.com/el/7/noarch/RPMS/mesosphere-el-repo-7-1.noarch.rpm
ignore_errors: true
- shell: rpm -Uvh http://archive.cloudera.com/cdh4/one-click-install/redhat/6/x86_64/cloudera-cdh-4-0.x86_64.rpm
ignore_errors: true
- name: Install mesos
yum:
name: mesos
state: latest
- name: Install marathon
yum:
name: marathon
state: latest
- name: Install zookeeper
yum:
name: zookeeper
state: latest
- name: Install zookeeper-server
yum:
name: zookeeper-server
state: latest
- shell: zookeeper-server-initialize --myid=1 --force
become_user: zookeeper
- name: Start zookeeper-server
service:
name: zookeeper-server
state: started
enabled: yes
- name: Start mesos-master
service:
name: mesos-master
state: started
enabled: yes
- name: Start mesos-slave
service:
name: mesos-slave
state: started
enabled: yes
- name: Start marathon
service:
name: marathon
state: started
enabled: yes