Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use newer syntax for notification, move service up

  • Loading branch information...
commit aefe06939743a4e10681a015911c36dfc373109b 1 parent ef6df66
@jtimberman jtimberman authored
View
4 fail2ban/metadata.json
@@ -20,7 +20,7 @@
]
},
"license": "Apache 2.0",
- "version": "0.7.1",
+ "version": "1.0.0",
"providing": {
},
"recipes": {
@@ -33,4 +33,4 @@
"groupings": {
},
"long_description": ""
- }
+ }
View
2  fail2ban/metadata.rb
@@ -2,7 +2,7 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs and configures fail2ban"
-version "0.7.1"
+version "1.0.0"
recipe "fail2ban", "Installs and configures fail2ban"
View
13 fail2ban/recipes/default.rb
@@ -2,7 +2,7 @@
# Cookbook Name:: fail2ban
# Recipe:: default
#
-# Copyright 2009, Opscode, Inc.
+# Copyright 2009-2011, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -20,16 +20,17 @@
action :upgrade
end
-service "fail2ban" do
- action :enable
-end
-
%w{ fail2ban jail }.each do |cfg|
template "/etc/fail2ban/#{cfg}.conf" do
source "#{cfg}.conf.erb"
owner "root"
group "root"
mode 0644
- notifies :restart, resources(:service => "fail2ban")
+ notifies :restart, "service[fail2ban]"
end
end
+
+service "fail2ban" do
+ supports [ :status => true, :restart => true ]
+ action [ :enable, :start ]
+end
Please sign in to comment.
Something went wrong with that request. Please try again.