]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/php/recipes/fpm.rb
Use strings for file modes
[chef.git] / cookbooks / php / recipes / fpm.rb
index 33baba2abf260f3a823d479a1f5fec7e14d1ce2f..ecda9640cefb750fd0ae9f1c93beb18adbf6c21a 100644 (file)
@@ -21,6 +21,14 @@ include_recipe "php"
 
 package "php-fpm"
 
+template "/etc/php/#{node[:php][:version]}/fpm/conf.d/99-chef.ini" do
+  source "php-fpm.ini.erb"
+  owner "root"
+  group "root"
+  mode "644"
+  notifies :restart, "service[php#{node[:php][:version]}-fpm]"
+end
+
 service "php#{node[:php][:version]}-fpm" do
   action [:enable, :start]
 end