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 -%> |
+<% end -%> |