+ 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
+
+link "/opt/piwik-#{version}/piwik/misc/GeoLite2-ASN.mmdb" do
+ to "/usr/share/GeoIP/GeoLite2-ASN.mmdb"
+end
+
+link "/opt/piwik-#{version}/piwik/misc/GeoLite2-City.mmdb" do
+ to "/usr/share/GeoIP/GeoLite2-City.mmdb"
+end
+
+link "/opt/piwik-#{version}/piwik/misc/GeoLite2-Country.mmdb" do
+ to "/usr/share/GeoIP/GeoLite2-Country.mmdb"
+end
+
+link "/srv/piwik.openstreetmap.org" do
+ to "/opt/piwik-#{version}/piwik"
+ notifies :restart, "service[php#{node[:php][:version]}-fpm]"