]> git.openstreetmap.org Git - chef.git/blob - roles/edgeuno.rb
Enable snmp monitoring for Edgeuno machines
[chef.git] / roles / edgeuno.rb
1 name "edgeuno"
2 description "Role applied to all servers at Edgeuno"
3
4 default_attributes(
5   :hosted_by => "EdgeUno",
6   :location => "Bogotá, Colombia",
7   :networking => {
8     :firewall => {
9       :inet => [
10         {
11           :action => "ACCEPT",
12           :source => "net:200.25.3.8/31",
13           :dest => "fw",
14           :proto => "udp",
15           :dest_ports => "snmp",
16           :source_ports => "1024:",
17           :rate_limit => "-",
18           :connection_limit => "-"
19         },
20         {
21           :action => "ACCEPT",
22           :source => "net:200.25.3.8/31",
23           :dest => "fw",
24           :proto => "tcp",
25           :dest_ports => "snmp",
26           :source_ports => "1024:",
27           :rate_limit => "-",
28           :connection_limit => "-"
29         }
30       ]
31     },
32     :nameservers => [
33       "8.8.8.8",
34       "1.1.1.1"
35     ],
36     :roles => {
37       :external => {
38         :zone => "osm"
39       }
40     }
41   }
42 )
43
44 override_attributes(
45   :ntp => {
46     :servers => ["0.co.pool.ntp.org", "1.co.pool.ntp.org", "south-america.pool.ntp.org"]
47   }
48 )
49
50 run_list(
51   "role[co]"
52 )