]> git.openstreetmap.org Git - chef.git/blobdiff - roles/planet.rb
Move the daily statistics to be served from planet.openstreetmap.org
[chef.git] / roles / planet.rb
index de8865e47ae0b19929fbd5eaa1c14c6bef28e1d2..78aabf815ae313a0602e3bd11ef1838105a482e9 100644 (file)
@@ -19,6 +19,19 @@ default_attributes(
       :http_connection_limit => 10
     }
   },
       :http_connection_limit => 10
     }
   },
+  :prometheus => {
+    :files => %w[
+      /store/planet/notes/planet-notes-latest.osn.bz2
+      /store/planet/pbf/planet-latest.osm.pbf
+      /store/planet/planet/changesets-latest.osm.bz2
+      /store/planet/planet/discussions-latest.osm.bz2
+      /store/planet/planet/planet-latest.osm.bz2
+      /store/planet/replication/changesets/state.yaml
+      /store/planet/replication/day/state.txt
+      /store/planet/replication/hour/state.txt
+      /store/planet/replication/minute/state.txt
+    ]
+  },
   :rsyncd => {
     :modules => {
       :planet => {
   :rsyncd => {
     :modules => {
       :planet => {
@@ -36,6 +49,17 @@ default_attributes(
         :ignore_nonreadable => true,
         :timeout => 3600,
         :refuse_options => ["checksum"]
         :ignore_nonreadable => true,
         :timeout => 3600,
         :refuse_options => ["checksum"]
+      },
+      :statistics => {
+        :comment => "Statistics",
+        :path => "/store/planet/statistics",
+        :read_only => false,
+        :write_only => true,
+        :list => false,
+        :uid => "planet",
+        :gid => "planet",
+        :transfer_logging => false,
+        :nodes_allow => "roles:web-statistics"
       }
     }
   }
       }
     }
   }