Skip to content

Commit

Permalink
Custom rules template and manifest ammend
Browse files Browse the repository at this point in the history
  • Loading branch information
Joan Manel Calaseit committed Aug 11, 2022
1 parent 4d16168 commit 2b4bde8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions manifests/customrule.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# Literal String set
#
define audit::customrule (
$customrules [],
$customrules = [],
) {
#
concat::fragment{ "${audit::params::audit_file} custom rule"
concat::fragment{ "${audit::params::audit_file} customrule ${name}":
target => $audit::params::audit_file,
order => '12',
content => template("${module_name}/customrule.erb"),
Expand Down
3 changes: 2 additions & 1 deletion templates/customrule.erb
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<% @customrules.each do |rule| %> <%= rule %><% end %>
<% @customrules.each do |rule| -%>
<%= rule %><% end -%>

0 comments on commit 2b4bde8

Please sign in to comment.