diff --git a/manifests/newsyslog.pp b/manifests/newsyslog.pp index 1e8c3721504d985d4fc36e037433628fb475f3fa..3189c42b1bc0a639fd61901402085aa4cb5279a2 100644 --- a/manifests/newsyslog.pp +++ b/manifests/newsyslog.pp @@ -72,7 +72,7 @@ class base::newsyslog { } # Rotate btmp and wtmp monthly and save one year's worth of those files. - base::newsyslog::config { 'wmtp': + base::newsyslog::config { 'wtmp': frequency => 'monthly', log_owner => 'root', log_group => 'utmp', @@ -80,6 +80,7 @@ class base::newsyslog { logs => [ 'btmp', 'wtmp' ], save_num => '12', } + file { '/etc/newsyslog.monthly/wmtp': ensure => absent } # Bad login attempt logging is only done if btmp exists. Ensure the file is # present with the correct permissions.