]> git.openstreetmap.org Git - chef.git/blob - roles/fafnir.rb
Configure bind and dhcp for Dublin
[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           :slaves => %w[eno1 eno2]
23         }
24       },
25       :external_ipv4 => {
26         :interface => "bond0.101",
27         :role => :external,
28         :family => :inet,
29         :address => "184.104.226.98"
30       },
31       :external_ipv6 => {
32         :interface => "bond0.101",
33         :role => :external,
34         :family => :inet6,
35         :address => "2001:470:1:b3b::2"
36       }
37     }
38   }
39 )
40
41 run_list(
42   "role[equinix-dub]",
43   "role[hp-g9]",
44   "role[gateway]",
45   "role[web-storage]"
46 )