Index: modules/fail2ban/templates/jail.erb |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/modules/fail2ban/templates/jail.erb |
@@ -0,0 +1,10 @@ |
+<% @jail_config.each do |name, config| -%> |
+<% if !config['logpath'].empty? -%> |
+[<%= name %>] |
+filter = <%= name %> |
+<% configuration = scope.function_merge(@jail_default, config) -%> |
+<% configuration.each do |key, value| -%> |
+<%= key %> = <%= value %> |
+<% end -%> |
+<% end -%> |
f.nicolaisen
2016/11/29 00:38:55
I think if you remove the minus (-) above here you
|
+<% end -%> |
f.nicolaisen
2016/11/29 00:38:55
Missing empty line for end of file.
|