-
Notifications
You must be signed in to change notification settings - Fork 14
/
site.yml
168 lines (145 loc) · 3.69 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
---
- name: apply common configuration to all nodes
hosts: all
roles:
- common
any_errors_fatal: yes
- name: set up master host for convenience
hosts: master
roles:
- goodies
any_errors_fatal: yes
- name: create non-root clusteruser user
hosts: all
roles:
- clusteruser_common
any_errors_fatal: yes
- name: setup passwordless SSH for clusteruser - donor key
hosts: master
roles:
- { role: sshkey_donor }
any_errors_fatal: yes
- name: setup passwordless SSH for clusteruser - accept key
hosts: workers
roles:
- { role: sshkey_acceptor }
any_errors_fatal: yes
- name: setup passwordless SSH for user root - donor key
hosts: master
roles:
- { role: sshkey_donor, clusteruser: root, clusteruser_home: '/root' }
any_errors_fatal: yes
- name: setup passwordless SSH for user root - accept key
hosts: workers
roles:
- { role: sshkey_acceptor, clusteruser: root, clusteruser_home: '/root' }
any_errors_fatal: yes
- name: setup nfs master
hosts: master
vars_files:
- group_vars/components.yml
roles:
- { role: nfs_server, when: install_mpi }
- name: setup nfs clients
hosts: workers
vars_files:
- group_vars/components.yml
roles:
- { role: nfs_client, when: install_mpi }
- name: setup mpi cluster
hosts: all
vars_files:
- group_vars/components.yml
roles:
- { role: openmpi, when: install_mpi }
- name: install SBT
hosts: master
vars_files:
- group_vars/components.yml
roles:
- { role: sbt, when: install_spark }
any_errors_fatal: yes
- name: install Scala
hosts: master
vars_files:
- group_vars/components.yml
roles:
- { role: scala, when: install_spark }
any_errors_fatal: yes
- name: setup HDFS namenode
hosts: master
vars_files:
- group_vars/components.yml
roles:
- { role: hdfs_namenode, when: install_spark or install_mapred or install_mesos or install_tachyon }
any_errors_fatal: yes
- name: setup HDFS datanodes
hosts: workers
vars_files:
- group_vars/components.yml
roles:
- { role: hdfs_datanode, when: install_spark or install_mapred or install_mesos or install_tachyon }
any_errors_fatal: yes
- name: deploy standalone Spark
hosts: all
vars_files:
- group_vars/components.yml
roles:
- { role: spark_standalone, when: install_spark }
any_errors_fatal: yes
- name: install Mesos
hosts: all
vars_files:
- group_vars/components.yml
roles:
- { role: mesos, when: install_mesos }
any_errors_fatal: yes
- name: deploy Spark on Mesos
hosts: master
vars_files:
- group_vars/components.yml
roles:
- { role: spark_mesos, when: install_mesos and install_spark }
any_errors_fatal: yes
- name: install mysql on Hive master
hosts: master
vars_files:
- group_vars/components.yml
roles:
- { role: mysql_server, when: install_hive }
any_errors_fatal: yes
- name: install Hive
hosts: master
vars_files:
- group_vars/components.yml
roles:
- { role: hive, when: install_hive }
any_errors_fatal: yes
- name: deploy Tachyon
hosts: all
vars_files:
- group_vars/components.yml
roles:
- { role: tachyon, when: install_tachyon }
any_errors_fatal: yes
- name: setup YARN resourcemanager
hosts: master
vars_files:
- group_vars/components.yml
roles:
- { role: yarn_resourcemanager, when: install_mapred }
any_errors_fatal: false
- name: setup YARN nodemanagers
hosts: workers
vars_files:
- group_vars/components.yml
roles:
- { role: yarn_nodemanager, when: install_mapred }
any_errors_fatal: yes
- name: install Cassandra
hosts: all
vars_files:
- group_vars/components.yml
roles:
- { role: cassandra, when: install_cassandra }
- include: tests/integration-tests.yml