]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/fail2ban/resources/jail.rb
Make fail2ban use the journal to monitor sshd
[chef.git] / cookbooks / fail2ban / resources / jail.rb
index 1abedeecb9117ac29daadfb5c3d9006ced320707..66fa19d2da573fc876673bb9a40d85af1076c4e0 100644 (file)
@@ -19,7 +19,7 @@
 
 default_action :create
 
-property :jail, :kind_of => String, :name_attribute => true
+property :jail, :kind_of => String, :name_property => true
 property :filter, :kind_of => String
 property :logpath, :kind_of => String
 property :protocol, :kind_of => String
@@ -51,5 +51,5 @@ action :delete do
 end
 
 def after_created
-  notifies :reload, "service[fail2ban]"
+  notifies :restart, "service[fail2ban]"
 end