]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/piwik/recipes/default.rb
Move common PHP setup logic to a new cookbook
[chef.git] / cookbooks / piwik / recipes / default.rb
index a6b2bf3a7aa283572478fb49398dabcfed52f886..990e1c33e84d85a997f13239518d740e30021b61 100644 (file)
 include_recipe "apache"
 include_recipe "geoipupdate"
 include_recipe "mysql"
+include_recipe "php::apache"
 
 passwords = data_bag_item("piwik", "passwords")
 
-package "php"
-package "php-cli"
-package "php-curl"
-package "php-mbstring"
-package "php-mysql"
-package "php-gd"
-package "php-xml"
-package "php-apcu"
+package %w[
+  php-cli
+  php-curl
+  php-mbstring
+  php-mysql
+  php-gd
+  php-xml
+  php-apcu
+  unzip
+]
 
 apache_module "expires"
-apache_module "php7.2"
 apache_module "rewrite"
 
 version = node[:piwik][:version]