Displaying 1 result from an estimated 1 matches for "selector_pattern".
2006 Sep 08
0
syslog
...ns in
# the selector field to specify multiple priority specifications
define syslogconf(ensure, selector_regex="BASIC_REGEX",
action_regex="BASIC_REGEX") {
Exec { path => "/usr/bin:/usr/sbin/:/bin:/sbin" }
$file = "/etc/syslog.conf"
$selector_pattern = $selector_regex ? {
BASIC_REGEX => "^$name",
default => $selector_regex
}
$action_pattern = $action_regex ? {
BASIC_REGEX => "$ensure",
default => $action_regex
}
case $ensure {
absent: {
exec {...