Add fail2ban_filter for defining fail2ban filters
[chef.git] / cookbooks / wordpress / recipes / default.rb
index 65c486abf622f492bd3dc3d6b4ccae4d3759ebd5..b8db4b29af8f1fdfb16fd6c0386e7400bbce49a2 100644 (file)
@@ -31,12 +31,8 @@ package "php-apc"
 apache_module "php5"
 apache_module "rewrite"
 
-remote_file "/etc/fail2ban/filter.d/wordpress.conf" do
-  action :create_if_missing
+fail2ban_filter "wordpress" do
   source "http://plugins.svn.wordpress.org/wp-fail2ban/trunk/wordpress.conf"
-  owner "root"
-  group "root"
-  mode 0644
 end
 
 fail2ban_jail "wordpress" do