]> git.openstreetmap.org Git - chef.git/blob - roles/fafnir.rb
Update carto stylesheet to v5.5.1
[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   :prometheus => {
41     :snmp => {
42       "pdu1" => { :address => "10.0.64.100", :module => "apcups", :labels => { "site" => "dublin" } },
43       "pdu2" => { :address => "10.0.64.101", :module => "apcups", :labels => { "site" => "dublin" } },
44       "switch1" => { :address => "184.104.226.97", :module => "if_mib", :labels => { "site" => "dublin" } }
45     },
46     :metrics => {
47       :uplink_interface => {
48         :help => "Site uplink interface name",
49         :labels => { :site => "dublin", :name => "ae50" }
50       }
51     }
52   }
53 )
54
55 run_list(
56   "role[equinix-dub]",
57   "role[hp-g9]",
58   "role[gateway]",
59   "recipe[dhcpd]"
60 )