#
include_recipe "apache"
+include_recipe "geoipupdate"
include_recipe "mysql"
passwords = data_bag_item("piwik", "passwords")
package "php-xml"
package "php-apcu"
-package "geoipupdate"
-
apache_module "expires"
apache_module "php7.2"
apache_module "rewrite"
end
link "/opt/piwik-#{version}/piwik/misc/GeoLite2-ASN.mmdb" do
- to "/var/lib/GeoIP/GeoLite2-ASN.mmdb"
+ to "/usr/share/GeoIP/GeoLite2-ASN.mmdb"
end
link "/opt/piwik-#{version}/piwik/misc/GeoLite2-City.mmdb" do
- to "/var/lib/GeoIP/GeoLite2-City.mmdb"
+ to "/usr/share/GeoIP/GeoLite2-City.mmdb"
end
link "/opt/piwik-#{version}/piwik/misc/GeoLite2-Country.mmdb" do
- to "/var/lib/GeoIP/GeoLite2-Country.mmdb"
+ to "/usr/share/GeoIP/GeoLite2-Country.mmdb"
end
link "/srv/piwik.openstreetmap.org" do