X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ff20e3ccee15f5defc496d71207cf01db4e26607..66c8810de3626826ca758bf47b0def637254c97c:/cookbooks/planet/recipes/default.rb diff --git a/cookbooks/planet/recipes/default.rb b/cookbooks/planet/recipes/default.rb index 45029875d..5d4e063cd 100644 --- a/cookbooks/planet/recipes/default.rb +++ b/cookbooks/planet/recipes/default.rb @@ -17,17 +17,13 @@ # limitations under the License. # -include_recipe "apache::ssl" +include_recipe "apache" package "perl" package "pbzip2" package "osmosis" -if node[:lsb][:release].to_f >= 16.04 - package "php-cli" -else - package "php5-cli" -end +package "php-cli" file "/etc/cron.d/planet" do action :delete @@ -91,6 +87,11 @@ apache_module "cgid" apache_module "rewrite" apache_module "proxy_http" +ssl_certificate "planet.openstreetmap.org" do + domains ["planet.openstreetmap.org", "planet.osm.org"] + notifies :reload, "service[apache2]" +end + apache_site "planet.openstreetmap.org" do template "apache.erb" end