New release

* Default behaviour is now to install package as distros configure them. If you want to change the
  configuration you need to explicitly modify "jails_config" (see README for details)
* Add support to modifify fail2ban.conf (issue #1)
* Add specs and tests
* Some cleanup
This commit is contained in:
Javier Bértoli
2013-04-30 06:45:57 -03:00
parent 71e189ec6d
commit 0e96b8fa6f
5 changed files with 87 additions and 91 deletions
+22 -1
View File
@@ -24,7 +24,28 @@ For detailed info about the logic and usage patterns of Example42 modules check
class { 'fail2ban': }
* You can configure and set a jail using fail2ban::jail
* Configure jails using your own jail.local file
class { 'fail2ban':
jails_config => 'file',
jails_source => 'puppet:///path/to/your/jail.local'.
}
* Configure jails using a template file. An example is provided. In this case, you can enable or
disable jails using an array named "jails"
class { 'fail2ban':
jails_config => 'file',
jails_template => 'fail2ban/jail.local.erb',
jails => ['ssh', 'imap'],
}
* You can configure and set a jail using fail2ban::jail. In this case, stanzas for jail.local are
created using R.I.Pienaar's concat module. This method permits you better handling of your jails.
class { 'fail2ban':
jails_config => 'concat',
}
fail2ban::jail { 'sshd':
port => '22',