]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/overpass/recipes/default.rb
Upgrade to postgres 14 on culebre and nidhogg
[chef.git] / cookbooks / overpass / recipes / default.rb
index 8804202268c5500af71f368e47e5f13cb36e0bc2..690a28445102e3c32ababb5731658987ca18d07d 100644 (file)
@@ -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|