include_recipe "mysql"
include_recipe "nodejs"
include_recipe "postgresql"
+include_recipe "python"
package "php"
package "php-cgi"
nodejs_package "svgo"
-easy_install_package "geojson"
+python_package "geojson"
apache_module "env"
apache_module "expires"
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}"
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
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