-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.yml
57 lines (55 loc) · 1.04 KB
/
main.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
# Configure Master Node
- hosts: master
remote_user: root
vars_files:
- vars/user.yml
- vars/var_basic.yml
- vars/var_master.yml
vars:
add_user: true
generate_key: true
open_firewall: false
disable_firewall: false
install_hadoop: true
config_hadoop: true
install_hibench: true
config_hibench: true
roles:
- user
- fetch_public_key
- authorized
- etc_hosts
- java
- hadoop
- hibench
# Get Master Public Key
- hosts: master
remote_user: root
vars_files:
- vars/user.yml
- vars/var_basic.yml
- vars/var_workers.yml
roles:
- fetch_public_key
# Configure Worker Nodes
- hosts: workers
remote_user: root
vars_files:
- vars/user.yml
- vars/var_basic.yml
- vars/var_workers.yml
vars:
add_user: true
generate_key: false
open_firewall: false
disable_firewall: false
install_hadoop: true
config_hadoop: true
install_hibench: true
config_hibench: true
roles:
- user
- authorized
- etc_hosts
- java
- hadoop