X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2babb3f7b81746ad81746eab3c8288bc30c9cb71..e1d1e10672309ad3b5096aa92d3e34741b3e8694:/roles/planet.rb?ds=sidebyside diff --git a/roles/planet.rb b/roles/planet.rb index de8865e47..d7f349b44 100644 --- a/roles/planet.rb +++ b/roles/planet.rb @@ -19,6 +19,19 @@ default_attributes( :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 => { @@ -36,6 +49,17 @@ default_attributes( :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" } } } @@ -45,6 +69,5 @@ run_list( "role[web-db]", "recipe[planet]", "recipe[planet::replication]", - "recipe[nfs::server]", "recipe[rsyncd]" )