Skip to content

Commit

Permalink
Merge pull request #40 from JoanMa/master
Browse files Browse the repository at this point in the history
Custom rules template and manifest ammend
  • Loading branch information
JoanMa authored Aug 11, 2022
2 parents 4d16168 + 2b4bde8 commit 5b95493
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 5b95493

Please sign in to comment.