package "apache2-suexec-pristine"
php_fpm "default" do
- port 7000
pm_max_children 10
pm_start_servers 4
pm_min_spare_servers 2
next unless File.directory?("#{user_home}/public_html")
- port_number = 7000 + account["uid"].to_i
-
php_fpm name do
- port port_number
user name
group name
pm_max_children 10
apache_site "#{name}.dev.openstreetmap.org" do
template "apache.user.erb"
directory "#{user_home}/public_html"
- variables :user => name, :port => port_number
+ variables :user => name
end
template "/etc/sudoers.d/#{name}" do
if details[:repository]
site_aliases = details[:aliases] || []
- secret_key_base = details[:secret_key_base] || SecureRandom.base64(96)
-
- node.normal[:dev][:rails][name][:secret_key_base] = secret_key_base
+ secret_key_base = persistent_token("dev", "rails", name, "secret_key_base")
postgresql_database database_name do
cluster "12/main"
action :drop
cluster "12/main"
end
-
- node.normal[:dev][:rails].delete(name)
end
end