Displaying 1 result from an estimated 1 matches for "cleansysconfig".
2006 Sep 08
0
syslog
...=> "/usr/bin:/usr/sbin/:/bin:/sbin" }
$file = "/etc/syslog.conf"
file { "/etc/syslog.conf":
owner => root,
group => root,
mode => 644,
}
# Clean the syslog.conf file of any semicoloned selectors
exec { "cleansysconfig":
command => "sed -i -e ''/^[^#].*;/d'' $file",
onlyif => "grep ''^[^#].*;'' $file",
}
service { syslog:
name => $operatingsystem ? {
debian => sysklogd,
redhat => syslog...