From af8ee9d51bc0327a4379011b017672dc38290cb0 Mon Sep 17 00:00:00 2001 From: Russ Allbery <rra@stanford.edu> Date: Tue, 2 Jul 2013 15:50:17 -0700 Subject: [PATCH] Fix name of the wtmp newsyslog.montly file Also remove the old one for right now until the mistake is purged everywhere. --- manifests/newsyslog.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/newsyslog.pp b/manifests/newsyslog.pp index 1e8c372..3189c42 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. -- GitLab