X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/05ee9b13b9f827d40400ef16d756f882b14953d7..539dbe9f74466a7ec90ea7cbfb9bc8b49911551d:/cookbooks/tilecache/recipes/default.rb diff --git a/cookbooks/tilecache/recipes/default.rb b/cookbooks/tilecache/recipes/default.rb index bde954995..16a8af1be 100644 --- a/cookbooks/tilecache/recipes/default.rb +++ b/cookbooks/tilecache/recipes/default.rb @@ -179,19 +179,19 @@ template "/etc/cron.d/tilecache" do mode 0o644 end -directory "/srv/tilecache" +directory "/srv/tilecache" do owner "root" group "root" mode 0o755 end -directory "/srv/tilecache/data" +directory "/srv/tilecache/data" do owner "www-data" group "www-data" mode 0o755 end -file "/srv/tilecache/tilecache-curl-time.txt" do +cookbook_file "/srv/tilecache/tilecache-curl-time.txt" do source "tilecache-curl-time.txt" owner "root" group "root" @@ -205,3 +205,11 @@ template "/srv/tilecache/tilecache-curl-time" do mode 0o755 variables :caches => tilecaches, :renders => tilerenders end + +file "/srv/tilecache/tilecache-fastest-peers" do + action :delete +end + +ohai_plugin "tilecache" do + template "ohai.rb.erb" +end