X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/fca44ca0420b1f3048c2944900cfdef3b34e2509..778314482b6f5af41fcc1e5a10ee67f294cf76ef:/cookbooks/piwik/recipes/default.rb diff --git a/cookbooks/piwik/recipes/default.rb b/cookbooks/piwik/recipes/default.rb index 5317c3596..948c03af4 100644 --- a/cookbooks/piwik/recipes/default.rb +++ b/cookbooks/piwik/recipes/default.rb @@ -20,11 +20,11 @@ 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 @@ -36,7 +36,6 @@ package %w[ ] apache_module "expires" -apache_module "php7.2" apache_module "rewrite" version = node[:piwik][:version] @@ -124,9 +123,8 @@ apache_site "piwik.openstreetmap.org" do 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