russell.fulton
2011-Jan-18 03:30 UTC
[Puppet Users] I have several instances of some ''services''
I have some ''service'' definitions in a parameterised class:
class snort($name, $master) {
service{
"snort.$master":
start => "sudo -u snort /home/snort/bin/restart-snort
$sensor" ,
......
}
which get invoked from within a define:
define sensor ( $name, $master, $instance, $rule_categories,
$base_filter, $rule_files ) {
class { snort: stage => post, master => $master, sensor => $name }
..........
}
the service needs to be defined in a class to get the staging to work.
This works fine until I define another sensor on the same host then
puppet complains about duplicate classes.
The key thing is that I don''t want the services started until
everything else is in place -- I could possibly do this with a bunch
of requires but it would be messy as there are several.
Any ideas about the best way to handle this?
Russell
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.