-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathfaffy.rb
58 lines (56 loc) · 1.32 KB
/
faffy.rb
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
name "faffy"
description "Master role applied to faffy"
default_attributes(
:networking => {
:interfaces => {
:internal => {
:interface => "bond0",
:role => :internal,
:inet => {
:address => "10.0.48.3"
},
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:xmithashpolicy => "layer3+4",
:slaves => %w[eno1 eno2 eno3 eno4 eno5 eno6]
}
},
:external_he => {
:interface => "bond0.3",
:role => :external,
:metric => 150,
:source_route_table => 100,
:inet => {
:address => "184.104.179.131",
:prefix => "27",
:gateway => "184.104.179.129"
},
:inet6 => {
:address => "2001:470:1:fa1::3",
:prefix => 64,
:gateway => "2001:470:1:fa1::1"
}
},
:external => {
:interface => "bond0.103",
:role => :external,
:source_route_table => 150,
:inet => {
:address => "82.199.86.99",
:prefix => "27",
:gateway => "82.199.86.97"
},
:inet6 => {
:address => "2001:4d78:500:5e3::3",
:prefix => 64,
:gateway => "2001:4d78:500:5e3::1"
}
}
}
}
)
run_list(
"role[equinix-ams]",
"role[dev]"
)