]> git.openstreetmap.org Git - chef.git/blob - roles/fafnir.rb
1e19617f9c3e866756e0f8928cbefd7553a7147b
[chef.git] / roles / fafnir.rb
1 name "fafnir"
2 description "Master role applied to fafnir"
3
4 default_attributes(
5   :bind => {
6     :clients => "equinix-dub"
7   },
8   :dhcpd => {
9     :first_address => "10.0.79.1",
10     :last_address => "10.0.79.254"
11   },
12   :networking => {
13     :interfaces => {
14       :internal_ipv4 => {
15         :interface => "bond0",
16         :role => :internal,
17         :family => :inet,
18         :address => "10.0.64.2",
19         :bond => {
20           :mode => "802.3ad",
21           :lacprate => "fast",
22           :xmithashpolicy => "layer3+4",
23           :slaves => %w[eno1 eno2 eno3 eno4 eno49 eno50]
24         }
25       },
26       :external_ipv4 => {
27         :interface => "bond0.101",
28         :role => :external,
29         :family => :inet,
30         :address => "184.104.226.98"
31       },
32       :external_ipv6 => {
33         :interface => "bond0.101",
34         :role => :external,
35         :family => :inet6,
36         :address => "2001:470:1:b3b::2"
37       }
38     }
39   }
40 )
41
42 run_list(
43   "role[equinix-dub]",
44   "role[hp-g9]",
45   "role[gateway]",
46   "role[web-storage]",
47   "recipe[dhcpd]"
48 )