]> git.openstreetmap.org Git - chef.git/blobdiff - roles/wiki.rb
imagery: fix floating text and switch to https links in attribution
[chef.git] / roles / wiki.rb
index 0446cca06be5c6f7e5d326af9fc0cd720ae9c8ea..9298395afb272362099d8b3baaa92baa091a79e2 100644 (file)
@@ -7,11 +7,26 @@ default_attributes(
       :wiki => { :status => :role }
     }
   },
+  :elasticsearch => {
+    :cluster => {
+      :name => "wiki"
+    },
+    :script => {
+      :disable_dynamic => false
+    }
+  },
   :exim => {
-    :trusted_users => [ "www-data" ],
+    :trusted_users => ["www-data"],
     :aliases => {
       :root => "grant"
-    }
+    },
+    :rewrites => [
+      {
+        :pattern => "www-data@openstreetmap.org",
+        :replacement => "wiki@noreply.openstreetmap.org",
+        :flags => "F"
+      }
+    ]
   },
   :memcached => {
     :memory_limit => 1024,
@@ -24,13 +39,14 @@ default_attributes(
     :timeout => 30,
     :event => {
       :server_limit => 32,
-      :max_clients => 800,
+      :max_request_workers => 800,
       :threads_per_child => 50,
-      :max_requests_per_child => 10000
+      :max_connections_per_child => 10000
     }
   }
 )
 
 run_list(
+  "role[elasticsearch]",
   "recipe[wiki]"
 )