-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathhadoop.radl
52 lines (44 loc) · 1.04 KB
/
hadoop.radl
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
network publica (outbound = 'yes')
network privada ()
system front (
cpu.arch='x86_64' and
cpu.count>=1 and
memory.size>=1536m and
net_interface.0.connection = 'publica' and
net_interface.0.dns_name = 'hadoopmaster' and
net_interface.1.connection = 'privada' and
disk.0.os.name='linux' and
disk.0.os.flavour='ubuntu' and
disk.0.os.version='12.04'and
#disk.0.os.flavour='scientific' and
#disk.0.os.version>='6' and
disk.0.applications contains (name='ansible.roles.micafer.hadoop')
)
system wn (
cpu.arch='x86_64' and
cpu.count>=1 and
memory.size>=1536m and
net_interface.0.connection = 'privada' and
net_interface.0.dns_name = 'wn-#N#' and
disk.0.os.name='linux' and
disk.0.os.flavour='ubuntu' and
disk.0.os.version='12.04'
#disk.0.os.flavour='scientific' and
#disk.0.os.version>='6'
)
configure front (
@begin
---
- roles:
- { role: 'micafer.hadoop', hadoop_master: 'hadoopmaster', hadoop_type_of_node: 'master' }
@end
)
configure wn (
@begin
---
- roles:
- { role: 'micafer.hadoop', hadoop_master: 'hadoopmaster' }
@end
)
deploy front 1
deploy wn 2