X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/128b54ff815f5de7498e6ea22cae37cec36e3eeb..45dde9418dd342bb1a632d82559201c0b3becf1a:/cookbooks/taginfo/recipes/default.rb diff --git a/cookbooks/taginfo/recipes/default.rb b/cookbooks/taginfo/recipes/default.rb index 43cb17b29..4289c0042 100644 --- a/cookbooks/taginfo/recipes/default.rb +++ b/cookbooks/taginfo/recipes/default.rb @@ -1,8 +1,8 @@ # -# Cookbook Name:: taginfo +# Cookbook:: taginfo # Recipe:: default # -# Copyright 2014, OpenStreetMap Foundation +# Copyright:: 2014, OpenStreetMap Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,10 +62,6 @@ apache_module "cache" apache_module "cache_disk" apache_module "headers" -file "/etc/cron.d/taginfo" do - action :delete -end - directory "/var/log/taginfo" do owner "taginfo" group "taginfo" @@ -160,7 +156,7 @@ node[:taginfo][:sites].each do |site| notifies :restart, "passenger_application[#{directory}/taginfo/web/public]" end - %w[taginfo/web/tmp bin data data/old download sources planet planet/log].each do |dir| + %w[taginfo/web/tmp bin data data/old download sources].each do |dir| directory "#{directory}/#{dir}" do owner "taginfo" group "taginfo" @@ -168,14 +164,6 @@ node[:taginfo][:sites].each do |site| end end - file "#{directory}/bin/update-planet" do - action :delete - end - - file "#{directory}/bin/update-taginfo" do - action :delete - end - template "#{directory}/bin/update" do source "update.erb" owner "taginfo" @@ -184,7 +172,9 @@ node[:taginfo][:sites].each do |site| variables :name => site_name, :directory => directory end - passenger_application "#{directory}/taginfo/web/public" + passenger_application "#{directory}/taginfo/web/public" do + action :nothing + end ssl_certificate site_name do domains [site_name] + site_aliases