include_recipe "apache"
include_recipe "geoipupdate"
include_recipe "mysql"
+include_recipe "php::apache"
passwords = data_bag_item("piwik", "passwords")
package %w[
- php
php-cli
php-curl
php-mbstring
]
apache_module "expires"
-apache_module "php7.2"
apache_module "rewrite"
version = node[:piwik][:version]
template "apache.erb"
end
-template "/etc/cron.d/piwiki" do
- source "cron.erb"
- owner "root"
- group "root"
- mode "0644"
+cron_d "piwik" do
+ minute "5"
+ user "www-data"
+ command "/usr/bin/php /srv/piwik.openstreetmap.org/console core:archive --quiet --url=https://piwik.openstreetmap.org/"
end