]> git.openstreetmap.org Git - chef.git/blob - roles/hostedinnz.rb
Merge pull request #276 from Firefishy/git-timeout-tweak
[chef.git] / roles / hostedinnz.rb
1 name "hostedinnz"
2 description "Role applied to all servers at HostedIn.NZ"
3
4 default_attributes(
5   :accounts => {
6     :users => {
7       :asmith => { :status => :administrator }
8     }
9   },
10   :hosted_by => "HostedIn.NZ",
11   :location => "Wellington, New Zealand",
12   :networking => {
13     :nameservers => ["8.8.8.8", "8.8.4.4"],
14     :roles => {
15       :external => {
16         :zone => "osm"
17       }
18     }
19   },
20   :snmpd => {
21     :clients => ["103.106.66.28"],
22     :community => "hostedinnz",
23     :location => "Wellington"
24   }
25 )
26
27 override_attributes(
28   :ntp => {
29     :servers => ["0.nz.pool.ntp.org", "1.nz.pool.ntp.org", "oceania.pool.ntp.org"]
30   }
31 )
32
33 run_list(
34   "role[nz]",
35   "recipe[snmpd]"
36 )