]> git.openstreetmap.org Git - chef.git/blobdiff - roles/wiki.rb
Send wiki mail notifications from a noreply address
[chef.git] / roles / wiki.rb
index 0446cca06be5c6f7e5d326af9fc0cd720ae9c8ea..523e73c52601a61f8488ae2cb74a5712e805ffb1 100644 (file)
@@ -11,7 +11,14 @@ default_attributes(
     :trusted_users => [ "www-data" ],
     :aliases => {
       :root => "grant"
-    }
+    },
+    :rewrites => [
+      {
+        :pattern => "www-data@openstreetmap.org",
+        :replacement => "wiki@noreply.openstreetmap.org",
+        :flags => "F"
+      }
+    ]
   },
   :memcached => {
     :memory_limit => 1024,
@@ -32,5 +39,6 @@ default_attributes(
 )
 
 run_list(
+  "recipe[elasticsearch]",
   "recipe[wiki]"
 )