]> git.openstreetmap.org Git - chef.git/blobdiff - roles/ironbelly.rb
Add db-slave role to fafnir
[chef.git] / roles / ironbelly.rb
index 029c54b4038bceb153c536cbb68b0be52ba2ce54..13f9652266617ba93e0dcea0e0bd27bdfd60e007 100644 (file)
@@ -6,6 +6,18 @@ default_attributes(
     :sources => ["ubuntugis-unstable"]
   },
   :elasticsearch => {
+    :cluster => {
+      :routing => {
+        :allocation => {
+          :disk => {
+            :watermark => {
+              :low => "95%",
+              :high => "98%"
+            }
+          }
+        }
+      }
+    },
     :path => {
       :data => "/store/elasticsearch"
     }
@@ -47,6 +59,13 @@ default_attributes(
         :peer => {
           :host => "ridley.openstreetmap.org"
         }
+      },
+      :aws2ic => {
+        :port => "1195",
+        :mode => "server",
+        :peer => {
+          :host => "fafnir.openstreetmap.org"
+        }
       }
     }
   },
@@ -106,5 +125,6 @@ run_list(
   "recipe[rsyncd]",
   "recipe[openvpn]",
   "recipe[git::server]",
-  "recipe[tilelog]"
+  "recipe[tilelog]",
+  "recipe[serverinfo]"
 )