]> git.openstreetmap.org Git - chef.git/blob - roles/fafnir.rb
Disable SNMP monitoring of switches
[chef.git] / roles / fafnir.rb
1 name "fafnir"
2 description "Master role applied to fafnir"
3
4 default_attributes(
5   :dhcpd => {
6     :first_address => "10.0.79.1",
7     :last_address => "10.0.79.254"
8   },
9   :exim => {
10     :routes => {
11       :openstreetmap => {
12         :comment => "openstreetmap.org",
13         :domains => ["openstreetmap.org"],
14         :host => ["shenron.openstreetmap.org"]
15       }
16     }
17   },
18   :networking => {
19     :interfaces => {
20       :internal => {
21         :interface => "bond0",
22         :role => :internal,
23         :inet => {
24           :address => "10.0.64.2"
25         },
26         :bond => {
27           :mode => "802.3ad",
28           :lacprate => "fast",
29           :xmithashpolicy => "layer3+4",
30           :slaves => %w[eno1 eno2 eno3 eno4 eno49 eno50]
31         }
32       },
33       :external => {
34         :interface => "bond0.101",
35         :role => :external,
36         :inet => {
37           :address => "184.104.226.98"
38         },
39         :inet6 => {
40           :address => "2001:470:1:b3b::2"
41         }
42       }
43     }
44   },
45   :prometheus => {
46     :junos => {
47       "switch1" => { :address => "184.104.226.97", :labels => { "site" => "dublin" } }
48     },
49     :snmp => {
50       "pdu1" => { :address => "10.0.64.100", :modules => %w[apcups], :labels => { "site" => "dublin" } },
51       "pdu2" => { :address => "10.0.64.101", :modules => %w[apcups], :labels => { "site" => "dublin" } }
52     },
53     :metrics => {
54       :uplink_interface => {
55         :help => "Site uplink interface name",
56         :labels => { :site => "dublin", :name => "xe-[01]/2/[01]|ge-[01]/2/2" }
57       }
58     }
59   }
60 )
61
62 run_list(
63   "role[equinix-dub]",
64   "role[hp-g9]",
65   "role[gateway]",
66   "role[mail]",
67   "recipe[dhcpd]"
68 )