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

Unified Diff: modules/fail2ban/templates/jail.erb

Issue 29364214: Issue 2487 - Introduce fail2ban module (Closed)
Patch Set: Created Nov. 28, 2016, 3:59 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld