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

Side by Side Diff: modules/fail2ban/templates/jail.erb

Issue 29370944: NoIssue - Write fail2ban configuration for CVE-2013-0235 on web2 (Closed)
Patch Set: Fixing call function inside template Created Jan. 11, 2017, 4:04 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | modules/private-stub/hiera/hosts/web2.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <% @jails.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 <% if config['filter'].empty? -%>
5 filter = <%= name %> 5 filter = <%= name %>
6 <% end -%> 6 <% end -%>
7 <% configuration = scope.function_merge(@jail_default, config) -%> 7 <% configuration = scope.function_merge([@jail_default, config]) -%>
8 <% configuration.each do |key, value| -%> 8 <% configuration.each do |key, value| -%>
9 <%= key %> = <%= value %> 9 <%= key %> = <%= value %>
10 <% end %> 10 <% end %>
11 <% else -%> 11 <% else -%>
12 <% raise Puppet::Error, "Log path missing from configuration" -%> 12 <% raise Puppet::Error, "Log path missing from configuration" -%>
13 <% end -%> 13 <% end -%>
14 <% end -%> 14 <% end -%>
15 15
OLDNEW
« no previous file with comments | « no previous file | modules/private-stub/hiera/hosts/web2.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld