]> git.openstreetmap.org Git - chef.git/blob - roles/tabaluga.rb
Move more tests to run on Debian 12
[chef.git] / roles / tabaluga.rb
1 name "tabaluga"
2 description "Master role applied to tabaluga"
3
4 default_attributes(
5   :dhcpd => {
6     :first_address => "10.0.63.1",
7     :last_address => "10.0.63.254"
8   },
9   :networking => {
10     :interfaces => {
11       :internal => {
12         :inet => {
13           :address => "10.0.48.14"
14         },
15         :bond => {
16           :slaves => %w[eno1 eno2]
17         }
18       },
19       :henet => {
20         :inet => {
21           :address => "184.104.179.142"
22         },
23         :inet6 => {
24           :address => "2001:470:1:fa1::e"
25         }
26       },
27       :equinix => {
28         :inet => {
29           :address => "82.199.86.110"
30         },
31         :inet6 => {
32           :address => "2001:4d78:500:5e3::e"
33         }
34       }
35     }
36   },
37   :prometheus => {
38     :junos => {
39       "switch1" => { :address => "184.104.179.129", :labels => { "site" => "amsterdam" } }
40     },
41     :snmp => {
42       "pdu1" => { :address => "10.0.48.100", :modules => %w[apcups], :labels => { "site" => "amsterdam" } },
43       "pdu2" => { :address => "10.0.48.101", :modules => %w[apcups], :labels => { "site" => "amsterdam" } }
44     },
45     :metrics => {
46       :uplink_interface => {
47         :help => "Site uplink interface name",
48         :labels => { :site => "amsterdam", :name => "xe-[01]/2/0|ge-[01]/2/[02]" }
49       }
50     }
51   }
52 )
53
54 run_list(
55   "role[equinix-ams-public]",
56   "role[hp-g9]",
57   "role[blog-staging]",
58   "role[taginfo]",
59   "role[gateway]",
60   "recipe[dhcpd]"
61 )