]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/fail2ban/resources/filter.rb
Make fail2ban use the journal to monitor sshd
[chef.git] / cookbooks / fail2ban / resources / filter.rb
index 3d06eabbf1362571d81a48475a909a40354d9ef4..5e10241a46edc53c078193d9b220338aa300767f 100644 (file)
@@ -1,8 +1,8 @@
 #
-# Cookbook Name:: fail2ban
+# Cookbook:: fail2ban
 # Resource:: fail2ban_filter
 #
-# Copyright 2015, OpenStreetMap Foundation
+# Copyright:: 2015, OpenStreetMap Foundation
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@
 
 default_action :create
 
-property :filter, :kind_of => String, :name_attribute => true
+property :filter, :kind_of => String, :name_property => true
 property :source, :kind_of => String
 property :failregex, :kind_of => [String, Array]
 property :ignoreregex, :kind_of => [String, Array]
@@ -52,5 +52,5 @@ action :delete do
 end
 
 def after_created
-  notifies :reload, "service[fail2ban]"
+  notifies :restart, "service[fail2ban]"
 end