]> git.openstreetmap.org Git - chef.git/blob - roles/hostedinnz.rb
Spin up memcached on the web frontends
[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   },
15   :snmpd => {
16     :clients => ["103.106.66.28"],
17     :community => "hostedinnz",
18     :location => "Wellington"
19   }
20 )
21
22 override_attributes(
23   :ntp => {
24     :servers => ["0.nz.pool.ntp.org", "1.nz.pool.ntp.org", "oceania.pool.ntp.org"]
25   }
26 )
27
28 run_list(
29   "role[nz]",
30   "recipe[snmpd]"
31 )