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