]> git.openstreetmap.org Git - chef.git/commitdiff
wordpress: ignore failure to activate SVN plugins. Pin wp-fail2ban release
authorGrant Slater <github@firefishy.com>
Fri, 11 Aug 2023 15:37:09 +0000 (16:37 +0100)
committerGrant Slater <github@firefishy.com>
Fri, 11 Aug 2023 15:37:09 +0000 (16:37 +0100)
cookbooks/wordpress/resources/plugin.rb
cookbooks/wordpress/resources/site.rb

index 933f63b5e05eefe7cfc9c17b36332c7f71303ba5..078b926f5d2675f1e9b95d25664f456158fbfdcf 100644 (file)
@@ -68,6 +68,7 @@ action :create do
     user "www-data"
     group "www-data"
     not_if "/opt/wp-cli/wp --path='#{site_directory}' plugin is-active '#{new_resource.plugin}'"
+    ignore_failure plugin_repository.start_with?("https://plugins.svn.wordpress.org/")
   end
 end
 
index 52bba4ce5ae9a724f4bdab868e6b140bee303467..e4096614ffcae7e32b4214f2d0558ef83b0152b5 100644 (file)
@@ -192,6 +192,7 @@ action :create do
 
   wordpress_plugin "wp-fail2ban" do
     site new_resource.site
+    version "5.1.1"
     reload_apache false
   end