-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerate_machines.sh
executable file
·94 lines (92 loc) · 2.19 KB
/
generate_machines.sh
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
echo "machines:"
for i in $(seq 0 11); do echo -e "
vega.team$i.ists:
team_id: \"$i\"
ip: \"10.2.$i.10\"
network: \"10.2.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.2.$i.254\"
broadcast: \"10.2.$i.254\"
sirius.team$i.ists:
team_id: \"$i\"
ip: \"10.2.$i.20\"
network: \"10.2.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.2.$i.254\"
broadcast: \"10.2.$i.254\"
tauri.team$i.ists:
team_id: \"$i\"
ip: \"10.2.$i.30\"
network: \"10.2.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.2.$i.254\"
broadcast: \"10.2.$i.254\"
sol.team$i.ists:
team_id: \"$i\"
ip: \"10.2.$i.40\"
network: \"10.2.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.2.$i.254\"
broadcast: \"10.2.$i.254\"
crucis.team$i.ists:
team_id: \"$i\"
ip: \"10.2.$i.50\"
network: \"10.2.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.2.$i.254\"
broadcast: \"10.2.$i.254\"
persei.team$i.ists:
team_id: \"$i\"
ip: \"10.2.$i.60\"
network: \"10.2.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.2.$i.254\"
broadcast: \"10.2.$i.254\"
luna.team$i.ists:
team_id: \"$i\"
ip: \"10.2.$i.75\"
network: \"10.2.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.2.$i.254\"
broadcast: \"10.2.$i.254\"
andromeda.team$i.ists:
team_id: \"$i\"
ip: \"10.2.$i.100\"
network: \"10.2.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.2.$i.254\"
broadcast: \"10.2.$i.254\"
pegasi.team$i.ists:
team_id: \"$i\"
ip: \"10.3.$i.10\"
network: \"10.3.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.3.$i.254\"
broadcast: \"10.3.$i.254\"
wolf.team$i.ists:
team_id: \"$i\"
ip: \"10.3.$i.20\"
network: \"10.3.$i.0\"
netmask: \"255.255.255.0\"
gateway: \"10.3.$i.254\"
broadcast: \"10.3.$i.254\"
cygni.team$i.ists:
team_id: \"$i\"
ip: \"10.3.$i.254/24\"
public_ip: \"10.0.200.$[$i+64]/26\"
gateway: \"10.0.200.126\"
\n"; done
echo -e "
hostnames:
mail: tauri
web1: luna
web2: pegasi
elastic1: crucis
jenkins1: vega
jenkisn2: wolf
ad: sol
ftp: sirius
db: sirius
attack: persei
android: andromeda
router: cygni\n"