X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/f9a5a2d75b0d2b5637ee17a3b78616f2371e427d..913de457ced86c224e687d73729add48f4fef84f:/cookbooks/php/recipes/fpm.rb diff --git a/cookbooks/php/recipes/fpm.rb b/cookbooks/php/recipes/fpm.rb index 9932bcdcf..0be8bafe3 100644 --- a/cookbooks/php/recipes/fpm.rb +++ b/cookbooks/php/recipes/fpm.rb @@ -17,18 +17,18 @@ # limitations under the License. # -include_recipe "apache" include_recipe "php" package "php-fpm" -service "php#{node[:php][:version]}-fpm" do - action [:enable, :start] +template "/etc/php/#{node[:php][:version]}/fpm/conf.d/99-chef.ini" do + source "php-fpm.ini.erb" + owner "root" + group "root" + mode 0o644 + notifies :restart, "service[php#{node[:php][:version]}-fpm]" end -apache_module "proxy" -apache_module "proxy_fcgi" - -apache_conf "php#{node[:php][:version]}-fpm" do - action :enable +service "php#{node[:php][:version]}-fpm" do + action [:enable, :start] end