X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e4a0595002f1f428a98776070ad4677b6433b46f..05bb009f80ade5b81274bea496cd4fb67850670c:/cookbooks/blog/recipes/default.rb diff --git a/cookbooks/blog/recipes/default.rb b/cookbooks/blog/recipes/default.rb index 49759f4ee..e746b1006 100644 --- a/cookbooks/blog/recipes/default.rb +++ b/cookbooks/blog/recipes/default.rb @@ -24,7 +24,7 @@ passwords = data_bag_item("blog", "passwords") directory "/srv/blog.openstreetmap.org" do owner "wordpress" group "wordpress" - mode 0o755 + mode "755" end wordpress_site "blog.openstreetmap.org" do @@ -38,6 +38,7 @@ wordpress_site "blog.openstreetmap.org" do urls "/casts" => "/srv/blog.openstreetmap.org/casts", "/images" => "/srv/blog.openstreetmap.org/images", "/static" => "/srv/blog.openstreetmap.org/static" + fpm_prometheus_port 11401 end wordpress_theme "blog.openstreetmap.org-osmblog-wp-theme" do @@ -65,7 +66,7 @@ wordpress_plugin "blog.openstreetmap.org-sitepress-multilingual-cms" do plugin "sitepress-multilingual-cms" site "blog.openstreetmap.org" repository "https://git.openstreetmap.org/private/sitepress-multilingual-cms.git" - not_if { ENV["TEST_KITCHEN"] } + not_if { kitchen? } end wordpress_plugin "blog.openstreetmap.org-wordpress-importer" do @@ -73,6 +74,11 @@ wordpress_plugin "blog.openstreetmap.org-wordpress-importer" do site "blog.openstreetmap.org" end +wordpress_plugin "blog.openstreetmap.org-wp-piwik" do + plugin "wp-piwik" + site "blog.openstreetmap.org" +end + git "/srv/blog.openstreetmap.org/casts" do action :sync repository "https://github.com/openstreetmap/opengeodata-podcasts.git" @@ -111,6 +117,6 @@ template "/etc/cron.daily/blog-backup" do source "backup.cron.erb" owner "root" group "root" - mode 0o750 + mode "750" variables :passwords => passwords end