]> git.openstreetmap.org Git - chef.git/blobdiff - roles/hostedinnz.rb
Avoid exception iterating a non-existent directory
[chef.git] / roles / hostedinnz.rb
index 86438e01fadcebd7c8a1057d7595a91e9bafd198..d8f0311b1ac8d73dda2778cc8996b089ce36dd9e 100644 (file)
@@ -2,6 +2,11 @@ name "hostedinnz"
 description "Role applied to all servers at HostedIn.NZ"
 
 default_attributes(
+  :accounts => {
+    :users => {
+      :asmith => { :status => :administrator }
+    }
+  },
   :hosted_by => "HostedIn.NZ",
   :location => "Wellington, New Zealand",
   :networking => {
@@ -11,15 +16,21 @@ default_attributes(
         :zone => "osm"
       }
     }
+  },
+  :snmpd => {
+    :clients => ["103.106.66.28"],
+    :community => "hostedinnz",
+    :location => "Wellington"
   }
 )
 
 override_attributes(
   :ntp => {
-    :servers => ["0.nz.pool.ntp.org", "1.nz.pool.ntp.org", "asia.pool.ntp.org"]
+    :servers => ["0.nz.pool.ntp.org", "1.nz.pool.ntp.org", "oceania.pool.ntp.org"]
   }
 )
 
 run_list(
-  "role[nz]"
+  "role[nz]",
+  "recipe[snmpd]"
 )