]> git.openstreetmap.org Git - chef.git/blobdiff - roles/thorn-04.rb
Add roles for spike-0[45] and thorn-0[45]
[chef.git] / roles / thorn-04.rb
diff --git a/roles/thorn-04.rb b/roles/thorn-04.rb
new file mode 100644 (file)
index 0000000..348db2a
--- /dev/null
@@ -0,0 +1,32 @@
+name "thorn-04"
+description "Master role applied to thorn-04"
+
+default_attributes(
+  :networking => {
+    :interfaces => {
+      :internal_ipv4 => {
+        :interface => "bond0",
+        :role => :internal,
+        :family => :inet,
+        :address => "10.0.32.41",
+        :bond => {
+          :slaves => %w(eth0 eth1)
+        }
+      }
+    }
+  },
+  :sysctl => {
+    :ipv6_autoconf => {
+      :comment => "Disable IPv6 auto-configuration on internal interface",
+      :parameters => {
+        "net.ipv6.conf.bond0.autoconf" => "0",
+        "net.ipv6.conf.bond0.accept_ra" => "0"
+      }
+    }
+  }
+)
+
+run_list(
+  "role[bm]",
+  "role[web-backend]"
+)