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

Delta Between Two Patch Sets: modules/fail2ban/templates/jail.erb

Issue 29364214: Issue 2487 - Introduce fail2ban module (Closed)
Left Patch Set: Issue 2487 - Introduce fail2ban module Created Nov. 29, 2016, 10:58 a.m.
Right Patch Set: For comment 22 and 23 Created Dec. 2, 2016, 2:22 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « modules/fail2ban/templates/filter.erb ('k') | modules/private-stub/hiera/base.yaml » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 <% @jail_config.each do |name, config| -%> 1 <% @jails.each do |name, config| -%>
2 <% if !config['logpath'].empty? -%> 2 <% if !config['logpath'].empty? -%>
3 [<%= name %>] 3 [<%= name %>]
4 <% if config['filter'].empty? -%>
4 filter = <%= name %> 5 filter = <%= name %>
6 <% end -%>
5 <% configuration = scope.function_merge(@jail_default, config) -%> 7 <% configuration = scope.function_merge(@jail_default, config) -%>
6 <% configuration.each do |key, value| -%> 8 <% configuration.each do |key, value| -%>
7 <%= key %> = <%= value %> 9 <%= key %> = <%= value %>
8 <% end %> 10 <% end %>
11 <% else -%>
12 <% raise Puppet::Error, "Log path missing from configuration" -%>
9 <% end -%> 13 <% end -%>
10 <% end -%> 14 <% end -%>
15
LEFTRIGHT

Powered by Google App Engine
This is Rietveld