]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/php/recipes/fpm.rb
Use backport of cgi-mapserver
[chef.git] / cookbooks / php / recipes / fpm.rb
index 9932bcdcfd1acd808724ce8f45f8156a9073b2b1..2bebc87d2535a70d36141f92819269de5cb3b525 100644 (file)
 # limitations under the License.
 #
 
-include_recipe "apache"
 include_recipe "php"
+include_recipe "prometheus"
 
 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 "644"
+  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