X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7a4e7ecd0bcab75a3555d7425a0812983dcb2533..51c88d5adaf0081b923dc3f330c98f1ff2432168:/cookbooks/dev/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/dev/recipes/default.rb b/cookbooks/dev/recipes/default.rb index 3c5dafe25..80b80586b 100644 --- a/cookbooks/dev/recipes/default.rb +++ b/cookbooks/dev/recipes/default.rb @@ -26,6 +26,7 @@ include_recipe "git" include_recipe "mysql" include_recipe "nodejs" include_recipe "postgresql" +include_recipe "python" package "php" package "php-cgi" @@ -54,7 +55,7 @@ package "python-gdal" nodejs_package "svgo" -easy_install_package "geojson" +python_package "geojson" apache_module "env" apache_module "expires" @@ -112,7 +113,7 @@ search(:accounts, "*:*").each do |account| name = account["id"] details = node[:accounts][:users][name] || {} - next unless %w(user administrator).include?(details[:status]) + next unless %w[user administrator].include?(details[:status]) user_home = details[:home] || account["home"] || "#{node[:accounts][:home]}/#{name}" @@ -201,6 +202,11 @@ if node[:postgresql][:clusters][:"9.5/main"] notifies :run, "execute[#{rails_directory}]" end + ssl_certificate site_name do + domains [site_name] + site_aliases + notifies :reload, "service[apache2]" + end + apache_site site_name do template "apache.rails.erb" variables :name => site_name, :aliases => site_aliases, :secret_key_base => secret_key_base @@ -241,6 +247,11 @@ if node[:postgresql][:clusters][:"9.5/main"] mode 0o644 end + ssl_certificate "apis.dev.openstreetmap.org" do + domains "apis.dev.openstreetmap.org" + notifies :reload, "service[apache2]" + end + apache_site "apis.dev.openstreetmap.org" do template "apache.apis.erb" end