X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a0cc3b39962e5921f7a79ea35e2591e163148714..799c255d5ef68a6599a40e979519d21885588624:/cookbooks/stats/recipes/default.rb?ds=inline diff --git a/cookbooks/stats/recipes/default.rb b/cookbooks/stats/recipes/default.rb index 9a977603b..aec51357c 100644 --- a/cookbooks/stats/recipes/default.rb +++ b/cookbooks/stats/recipes/default.rb @@ -20,6 +20,7 @@ include_recipe "apache" package "awstats" +package "libgeo-ipfree-perl" node[:stats][:sites].each do |site| template "/etc/awstats/awstats.#{site[:name]}.conf" do @@ -62,10 +63,16 @@ template "/srv/stats.openstreetmap.org/index.html" do source "index.html.erb" owner "root" group "root" - mode 644 + mode 0644 variables :sites => node[:stats][:sites] end +cookbook_file "/srv/stats.openstreetmap.org/robots.txt" do + owner "root" + group "root" + mode 0644 +end + apache_site "stats.openstreetmap.org" do template "apache.erb" directory "/srv/stats.openstreetmap.org"