| Index: modules/fail2ban/templates/jail.erb |
| =================================================================== |
| new file mode 100644 |
| --- /dev/null |
| +++ b/modules/fail2ban/templates/jail.erb |
| @@ -0,0 +1,11 @@ |
| +<% @jail_config.each do |name, config| -%> |
| +<% if !config['logpath'].empty? -%> |
|
mathias
2016/11/29 13:21:27
Why this condition? And why just silently ignoring
f.lopez
2016/12/01 09:13:50
The path to the log file is necessary so fail2ban
|
| +[<%= name %>] |
| +filter = <%= name %> |
|
mathias
2016/11/29 13:21:26
The filter should be an extra parameter of the cur
f.lopez
2016/12/01 09:13:50
Acknowledged.
|
| +<% configuration = scope.function_merge(@jail_default, config) -%> |
| +<% configuration.each do |key, value| -%> |
| +<%= key %> = <%= value %> |
| +<% end %> |
| +<% end -%> |
| +<% end -%> |
| + |