+ variables :passwords => passwords,
+ :directory => "/opt/piwik-#{version}/piwik",
+ :plugins => node[:piwik][:plugins]
+end
+
+directory "/opt/piwik-#{version}/piwik/tmp" do
+ owner "www-data"
+ group "www-data"
+ mode "0755"
+end
+
+directory "/opt/piwik-#{version}/piwik/tmp/assets" do
+ owner "www-data"
+ group "mysql"
+ mode "0750"
+end
+
+link "/opt/piwik-#{version}/piwik/misc/GeoLite2-ASN.mmdb" do
+ to "#{geoip_directory}/GeoLite2-ASN.mmdb"
+end
+
+link "/opt/piwik-#{version}/piwik/misc/GeoLite2-City.mmdb" do
+ to "#{geoip_directory}/GeoLite2-City.mmdb"
+end
+
+link "/opt/piwik-#{version}/piwik/misc/GeoLite2-Country.mmdb" do
+ to "#{geoip_directory}/GeoLite2-Country.mmdb"
+end
+
+link "/srv/piwik.openstreetmap.org" do
+ to "/opt/piwik-#{version}/piwik"
+ notifies :restart, "service[php#{node[:php][:version]}-fpm]"