]> git.openstreetmap.org Git - chef.git/blob - roles/hostedinnz.rb
Enable SNMP for HostedIn.NZ machines
[chef.git] / roles / hostedinnz.rb
1 name "hostedinnz"
2 description "Role applied to all servers at HostedIn.NZ"
3
4 default_attributes(
5   :hosted_by => "HostedIn.NZ",
6   :location => "Wellington, New Zealand",
7   :networking => {
8     :nameservers => ["8.8.8.8", "8.8.4.4"],
9     :roles => {
10       :external => {
11         :zone => "osm"
12       }
13     }
14   },
15   :snmpd => {
16     :community => "hostedinnz",
17     :location => "Wellington"
18   }
19 )
20
21 override_attributes(
22   :ntp => {
23     :servers => ["0.nz.pool.ntp.org", "1.nz.pool.ntp.org", "asia.pool.ntp.org"]
24   }
25 )
26
27 run_list(
28   "role[nz]",
29   "recipe[snmpd]"
30 )