]> git.openstreetmap.org Git - chef.git/blobdiff - roles/lyonix.rb
Add role for odin
[chef.git] / roles / lyonix.rb
index 8233916fd9ca4fd926c7806a5145a3faa950cbcd..a5aff59e0b33853778abbada6fe3fce94d3ef8d7 100644 (file)
@@ -2,27 +2,31 @@ name "lyonix"
 description "Role applied to all servers at LyonIX"
 
 default_attributes(
-  :accounts => {
-    :users => {
-      :lyonix => { :status => :administrator }
-    }
-  },
+  :hosted_by => "LyonIX",
+  :location => "Lyon, France",
   :networking => {
-    :nameservers => [ "77.95.64.205", "77.95.64.206", "8.8.8.8", "8.8.4.4" ],
+    :nameservers => ["77.95.64.205", "77.95.64.206", "8.8.8.8", "8.8.4.4"],
     :roles => {
       :external => {
         :zone => "ly"
       }
     }
+  },
+  :snmpd => {
+    :clients => ["77.95.64.0/24", "77.95.70.0/24"],
+    :community => "lyonix",
+    :location => "LYON",
+    :contact => "noc@lyonix.net"
   }
 )
 
 override_attributes(
   :ntp => {
-    :servers => [ "0.fr.pool.ntp.org", "1.fr.pool.ntp.org", "europe.pool.ntp.org" ]
+    :servers => ["0.fr.pool.ntp.org", "1.fr.pool.ntp.org", "europe.pool.ntp.org"]
   }
 )
 
 run_list(
-  "role[fr]"
+  "role[fr]",
+  "recipe[snmpd]"
 )