X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/90e8109a883d6bbae266acf94a90b54526b3d443..a627b8b2958a004bc980fb0724cf1962e030b3a5:/cookbooks/overpass/recipes/default.rb diff --git a/cookbooks/overpass/recipes/default.rb b/cookbooks/overpass/recipes/default.rb index 880420226..690a28445 100644 --- a/cookbooks/overpass/recipes/default.rb +++ b/cookbooks/overpass/recipes/default.rb @@ -18,8 +18,9 @@ # include_recipe "accounts" -include_recipe "munin" include_recipe "apache" +include_recipe "munin" +include_recipe "ruby" username = "overpass" basedir = data_bag_item("accounts", username)["home"] @@ -72,7 +73,9 @@ end ## Setup Apache -gem_package "rotp" +gem_package "rotp" do + gem_binary node[:ruby][:gem] +end directory "#{basedir}/apache" do owner "root" @@ -211,6 +214,14 @@ service "overpass-area-processor" do action [:enable] end +template "/etc/logrotate.d/overpass" do + source "logrotate.erb" + owner "root" + group "root" + mode "644" + variables :logdir => logdir +end + # Munin scripts %w[db_lag request_count].each do |name|