Files
puppet-fail2ban/templates/action.local.erb
Javier Bértoli e14a8aeea7 Add a define to manage actions in fail2ban
It creates a .local action file with user defined ban/unban actions, using a template or a source file
2013-08-08 19:23:46 -03:00

34 lines
728 B
Plaintext

# This file is managed by Puppet. DO NOT EDIT.
#
[INCLUDES]
<% if @actionbefore != '' -%>
before = <%= @actionbefore -%>
<% end -%>
<% if @actionafter != '' -%>
after = <%= @actionafter -%>
<% end -%>
[Definition]
<% if @array_start != [] -%>
actionstart = <%= @array_start.join("\n\t") %>
<% end -%>
<% if @array_stop != [] -%>
actionstop = <%= @array_stop.join("\n\t") %>
<% end -%>
<% if @array_check != [] -%>
actioncheck = <%= @array_check.join("\n\t") %>
<% end -%>
<% if @array_ban != [] -%>
actionban = <%= @array_ban.join("\n\t") %>
<% end -%>
<% if @array_unban != [] -%>
actionunban = <%= @array_unban.join("\n\t") %>
<% end -%>
[Init]
<% if @array_initvars != [] -%>
<%= @array_initvars.join("\n") %>
<% end -%>