]> git.openstreetmap.org Git - chef.git/blobdiff - roles/errol.rb
Add roles from the private repository
[chef.git] / roles / errol.rb
diff --git a/roles/errol.rb b/roles/errol.rb
new file mode 100644 (file)
index 0000000..efb7b93
--- /dev/null
@@ -0,0 +1,65 @@
+name "errol"
+description "Master role applied to errol"
+
+default_attributes(
+  :munin => {
+    :plugins => {
+      :sensors_fan => {
+        :contacts => "null"
+      },
+      :sensors_temp => {
+        :contacts => "null"
+      },
+      :sensors_volt => {
+        :contacts => "null",
+        :volt10 => { 
+          :warning => "3.11:3.50",
+          :critical => "2.98:3.63"
+        }
+      }
+    }
+  },
+  :devices => {
+    :osdsk => {
+      :comment => "First os disk",
+      :type => "block",
+      :bus => "scsi",
+      :serial => "20004d927fffff800",
+      :attrs => {
+        "queue/scheduler" => "deadline",
+        "queue/nr_requests" => "512"
+      }
+    },
+    :homedsk => {
+      :comment => "First home disk",
+      :type => "block",
+      :bus => "scsi",
+      :serial => "20004d927fffff801",
+      :attrs => {
+        "queue/scheduler" => "deadline",
+        "queue/nr_requests" => "512"
+      }
+    }
+  },
+  :networking => {
+    :interfaces => {
+      :internal_ipv4 => {
+        :interface => "eth0",
+        :role => :internal,
+        :family => :inet,
+        :address => "10.0.0.14"
+      },
+      :external_ipv4 => {
+        :interface => "eth1",
+        :role => :external,
+        :family => :inet,
+        :address => "128.40.168.103"
+      }
+    }
+  }
+);
+
+run_list(
+  "role[ucl-external]",
+  "role[dev]"
+)