]> git.openstreetmap.org Git - chef.git/blobdiff - roles/ramoth.rb
Update ramoth eth interfaces
[chef.git] / roles / ramoth.rb
index 32a0499c9f7d44b970620192d5bc1a9e7f19ce9b..c8a12c518749118e9be42ed6b73dcea6dba7f374 100644 (file)
@@ -2,8 +2,11 @@ name "ramoth"
 description "Master role applied to ramoth"
 
 default_attributes(
+  :apt => {
+    :sources => ["postgresql"]
+  },
   :db => {
-    :cluster => "9.1/main"
+    :cluster => "9.5/main"
   },
   :devices => {
     :store_openstreetmap => {
@@ -43,11 +46,13 @@ default_attributes(
   :networking => {
     :interfaces => {
       :internal_ipv4 => {
-        :interface => "eth0",
+        :interface => "bond0",
         :role => :internal,
         :family => :inet,
-        :address => "146.179.159.170",
-        :hwaddress => "00:25:90:4b:05:9a"
+        :address => "10.0.48.5",
+        :bond => {
+          :slaves => %w[enp7s0f0 enp7s0f1]
+        }
       }
     }
   },
@@ -73,6 +78,6 @@ default_attributes(
 )
 
 run_list(
-  "role[ic]",
+  "role[equinix]",
   "role[db-slave]"
 )