]> git.openstreetmap.org Git - chef.git/blobdiff - roles/stats.rb
Bring stats.openstreetmap.org under chef control
[chef.git] / roles / stats.rb
diff --git a/roles/stats.rb b/roles/stats.rb
new file mode 100644 (file)
index 0000000..214c8b0
--- /dev/null
@@ -0,0 +1,21 @@
+name "stats"
+description "Role applied to stats.openstreetmap.org"
+
+default_attributes(
+  :stats => {
+    :sites => [
+      { 
+        :name => "planet.openstreetmap.org",
+        :log_pattern => "%YYYY-168-%MM-168-%DD-168.gz"
+      },
+      { 
+        :name => "www.openstreetmap.org",
+        :log_pattern => "*-%YYYY-48-%MM-48-%DD-48.gz"
+      }
+    ]
+  }
+)
+
+run_list(
+  "recipe[stats]"
+)