]> git.openstreetmap.org Git - chef.git/blob - roles/fafnir.rb
Drop roles for thorn-02 and thorn-03
[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   :exim => {
13     :smarthost_name => "fafnir.openstreetmap.org",
14     :routes => {
15       :openstreetmap => {
16         :comment => "openstreetmap.org",
17         :domains => ["openstreetmap.org"],
18         :host => ["shenron.openstreetmap.org"]
19       }
20     }
21   },
22   :networking => {
23     :interfaces => {
24       :internal_ipv4 => {
25         :interface => "bond0",
26         :role => :internal,
27         :family => :inet,
28         :address => "10.0.64.2",
29         :bond => {
30           :mode => "802.3ad",
31           :lacprate => "fast",
32           :xmithashpolicy => "layer3+4",
33           :slaves => %w[eno1 eno2 eno3 eno4 eno49 eno50]
34         }
35       },
36       :external_ipv4 => {
37         :interface => "bond0.101",
38         :role => :external,
39         :family => :inet,
40         :address => "184.104.226.98"
41       },
42       :external_ipv6 => {
43         :interface => "bond0.101",
44         :role => :external,
45         :family => :inet6,
46         :address => "2001:470:1:b3b::2"
47       }
48     }
49   },
50   :prometheus => {
51     :snmp => {
52       "pdu1" => { :address => "10.0.64.100", :modules => %w[apcups], :labels => { "site" => "dublin" } },
53       "pdu2" => { :address => "10.0.64.101", :modules => %w[apcups], :labels => { "site" => "dublin" } },
54       "switch1" => { :address => "184.104.226.97", :modules => %w[if_mib juniper_ex4300], :labels => { "site" => "dublin" } }
55     },
56     :metrics => {
57       :uplink_interface => {
58         :help => "Site uplink interface name",
59         :labels => { :site => "dublin", :name => "ae50" }
60       }
61     }
62   }
63 )
64
65 run_list(
66   "role[equinix-dub]",
67   "role[hp-g9]",
68   "role[gateway]",
69   "role[mail]",
70   "recipe[dhcpd]"
71 )