Can't specify my own template?
jblaine opened this issue · comments
In case anyone has any thoughts, I'm stuck here.
I have a wrapper cookbook around auditd
called rcf-auditd
. It's stupid simple. The recipe where there is trouble is shown below. It's as if the template cannot be found... but there is no error. The chef-client run converges and simply puts the default audit.rules
in place as if I had not specified any ruleset.
# rcf-auditd/recipes/default.rb
#
# The following file exists in rcf-auditd/templates/default/modified-CIS.erb
# Setting this to just 'cis' does in fact put the cis ruleset in place though.
node.set['auditd']['ruleset'] = 'modified-CIS'
#
include_recipe 'auditd'
# EOF
@jblaine That is corrct behaviour based on how it's currently written: https://github.com/hw-cookbooks/auditd/blob/master/recipes/default.rb#L44 but I can see how that's not very useful.
I have some work on a branch I'll share shortly that should fix this
These changes in #9 worked fine for me. Thank you.
Closing as resolved since #9 has been merged