From 5f98dd4613acac096b6db3c568ed34f5796973e3 Mon Sep 17 00:00:00 2001 From: Martin Schuette Date: Sun, 1 Jun 2014 22:01:25 +0200 Subject: [PATCH] rsyslog: fix dhcp log levels --- manifests/init.pp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 4924448..645767d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -222,8 +222,11 @@ class ff_gw::dhcpd($gw_ipv4, $dhcprange_start, $dhcprange_end) { '/etc/rsyslog.d/dhcpd.conf': ensure => file, notify => Service['rsyslog'], - content => 'local7.warn /var/log/dhcpd.log -& ~'; + content => '# managed by puppet +# log DHCP warnings +local7.warn /var/log/dhcpd.log +# but do not log DHCP leases etc. +local7.* ~'; '/etc/default/isc-dhcpd': ensure => file, content => '# managed by puppet