X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/18e12b0e123fc3e5f344682f884feabc12da0f5a..9ab34285fe68733b1252c730cc6757cfb2dd716b:/cookbooks/taginfo/recipes/default.rb diff --git a/cookbooks/taginfo/recipes/default.rb b/cookbooks/taginfo/recipes/default.rb index 10b5a7f25..98a45e378 100644 --- a/cookbooks/taginfo/recipes/default.rb +++ b/cookbooks/taginfo/recipes/default.rb @@ -30,7 +30,7 @@ package %w[ libboost-dev libexpat1-dev libsparsehash-dev - libgd2-xpm-dev + libgd-dev libicu-dev libboost-program-options-dev cmake @@ -85,6 +85,7 @@ end node[:taginfo][:sites].each do |site| site_name = site[:name] + site_aliases = Array(site[:aliases]) directory = site[:directory] || "/srv/#{site_name}" description = site[:description] about = site[:about] @@ -130,7 +131,7 @@ node[:taginfo][:sites].each do |site| settings = Chef::DelayedEvaluator.new do settings = JSON.parse(IO.read("#{directory}/taginfo/taginfo-config-example.json")) - settings["instance"]["url"] = "http://#{site_name}/" + settings["instance"]["url"] = "https://#{site_name}/" settings["instance"]["description"] = description settings["instance"]["about"] = about settings["instance"]["icon"] = "/img/logo/#{icon}.png" @@ -238,12 +239,13 @@ node[:taginfo][:sites].each do |site| end ssl_certificate site_name do - domains site_name + domains [site_name] + site_aliases notifies :reload, "service[apache2]" end apache_site site_name do template "apache.erb" directory "#{directory}/taginfo/web/public" + variables :aliases => site_aliases end end