]> git.openstreetmap.org Git - chef.git/blobdiff - roles/katla.rb
Update katla and grisu for move to Bytemark
[chef.git] / roles / katla.rb
index d29a8038267ea94d14f5cfe21b718efc43265320..8023e0e305f06f5b7e2301b31344d942de9a5225 100644 (file)
@@ -50,11 +50,13 @@ default_attributes(
   :networking => {
     :interfaces => {
       :internal_ipv4 => {
   :networking => {
     :interfaces => {
       :internal_ipv4 => {
-        :interface => "eth0",
+        :interface => "bond0",
         :role => :internal,
         :family => :inet,
         :role => :internal,
         :family => :inet,
-        :address => "146.179.159.173",
-        :hwaddress => "00:25:90:94:91:00"
+        :address => "10.0.32.40",
+        :bond => {
+          :slaves => %w(eth0 eth1)
+        }
       }
     }
   },
       }
     }
   },
@@ -69,6 +71,13 @@ default_attributes(
     }
   },
   :sysctl => {
     }
   },
   :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"
+      }
+    },
     :postgres => {
       :comment => "Increase shared memory for postgres",
       :parameters => {
     :postgres => {
       :comment => "Increase shared memory for postgres",
       :parameters => {
@@ -77,10 +86,10 @@ default_attributes(
       }
     }
   }
       }
     }
   }
-);
+)
 
 run_list(
 
 run_list(
-  "role[ic]",
-  "role[db-slave]",
+  "role[bytemark]",
+  "role[db-master]",
   "role[db-backup]"
 )
   "role[db-backup]"
 )