Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/fail2ban/manifests/filter.pp

Issue 29364214: Issue 2487 - Introduce fail2ban module (Closed)
Patch Set: Created Nov. 24, 2016, 3:09 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | modules/fail2ban/manifests/init.pp » ('j') | modules/fail2ban/manifests/init.pp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # == Type: fail2ban::filter
2 #
3 # Manage filter information and files for any custom filter we create
mathias 2016/11/24 16:08:48 Please use un-personalized text in documentation,
f.lopez 2016/11/25 15:13:49 Acknowledged.
4 #
5 # == Parameters:
6 #
7 # [*failregex*]
8 # The regular expressions used to detect break-in attempts, password failures, etc.
9 # One per line
mathias 2016/11/24 16:08:48 A bit too specific. Something like "The regular ex
f.lopez 2016/11/25 15:13:48 Acknowledged.
10 #
11 # === Examples:
12 #
13 # filters => {
14 # 'wordpress' => {
15 # failregex => [
16 # '^<HOST>.*\"WordPress\/.*',
17 # ],
18 # }
19 # },
mathias 2016/11/24 16:08:48 The example is not valid Puppet code, a snippet at
f.lopez 2016/11/25 15:13:48 Acknowledged.
20 define fail2ban::filter (
21 $failregex = undef,
22 $ensure = 'present',
mathias 2016/11/24 16:08:48 The $ensure parameter is not documented yet.
f.lopez 2016/11/25 15:13:49 Acknowledged.
23 ) {
24
25 include fail2ban
26 include stdlib
27
28 if $failregex != undef {
mathias 2016/11/24 16:08:48 This condition does not make much sense in this co
f.lopez 2016/11/25 15:13:49 There can be cases where an already existing filte
29 file {"/etc/fail2ban/filter.d/$title.conf":
30 ensure => $ensure,
31 content => template("fail2ban/filter.erb"),
32 group => 'root',
33 mode => '0644',
34 owner => 'root',
35 require => Package['fail2ban'],
36 notify => Service['fail2ban'],
37 }
38 }
39 }
OLDNEW
« no previous file with comments | « no previous file | modules/fail2ban/manifests/init.pp » ('j') | modules/fail2ban/manifests/init.pp » ('J')

Powered by Google App Engine
This is Rietveld