I have a class in a file monitor/manifest/masters/dmzo:
class dmzo {
$rule_categories = [
scan,finger,ftp,telnet,rpc,rservices,ddos,dns,tftp,web-
coldfusion,misc,web-php,
]
}
and probably other variables eventually...
In my monitor/manifest/init.pp:
module monitor {
import "masters/*.pp"
define sensor ( $name, $master, $interfaces ) {
include $master
barnyard { $interfaces : }
snort{ $master: interfaces => $interfaces }
file {
"/home/snort/conf/$master-pp.conf":
owner => 'snort',
group => 'snort',
content=>template('monitor/pulledpork.conf.erb'),
ensure=>present;
}
.................
}
and in pulledpork.con.erb :
include=<%= rule_categories.join(',') %>
and I get the error:
"Could not find value for 'rule_categories' at /etc/puppet/modules/
monitor/manifests/init.pp:62"
I have tried qualifying the name by prefixing it with dmzo:: and
dmzo. then I get same error for
'dmzo'.
I assume I need to qualify the variable name but don't know how.
What I am trying to do is have parameters to a define select a value
for a variable that then gets passed to erb. I also want to have the
values specified in a single separate file or a series of files in a
directory.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.