| Index: modules/fail2ban/templates/jail.erb | 
| =================================================================== | 
| new file mode 100644 | 
| --- /dev/null | 
| +++ b/modules/fail2ban/templates/jail.erb | 
| @@ -0,0 +1,15 @@ | 
| +<% @jail_config.each do |name, config| -%> | 
| +<% if !config['logpath'].empty? -%> | 
| +[<%= name %>] | 
| +<% if config['filter'].empty? -%> | 
| +filter = <%= name %> | 
| +<% end -%> | 
| +<% configuration = scope.function_merge(@jail_default, config) -%> | 
| +<% configuration.each do |key, value| -%> | 
| +<%= key %> = <%= value %> | 
| +<% end %> | 
| +<% else -%> | 
| +<% raise Puppet::Error, "Log path missing from configuration" -%> | 
| +<% end -%> | 
| +<% end -%> | 
| + |