-
Russ Allbery authored
newsyslog no longer sets up a weekly command to tar up /root/.history-save and removes /etc/newsyslog.weekly/audit if it exists. We're no longer using per-user history files and we're letting bash handle managing the length of the history file. newsyslog now creates btmp and wtmp writable by group utmp, matching the operating system defaults. newsyslog no longer attempts to clean up sysklogd cron jobs or remove the old /etc/newsyslog.daily/syslog file installed by ancient versions of stanford-server. General coding style cleanup.
Russ Allbery authorednewsyslog no longer sets up a weekly command to tar up /root/.history-save and removes /etc/newsyslog.weekly/audit if it exists. We're no longer using per-user history files and we're letting bash handle managing the length of the history file. newsyslog now creates btmp and wtmp writable by group utmp, matching the operating system defaults. newsyslog no longer attempts to clean up sysklogd cron jobs or remove the old /etc/newsyslog.daily/syslog file installed by ancient versions of stanford-server. General coding style cleanup.
disabled.pp 703 B
# This class sets up just enough of the machinery of newsyslog so that other
# classes don't complain that it's missing, but disables it so that all log
# rotation can be handled with logrotate. Some other classes depend on the
# Package['newsyslog'] resource to ensure that directories exist, so we need
# to provide it.
class base::newsyslog::disabled {
package { 'newsyslog': ensure => present; }
# We can leave /etc/newsyslog.* directories in place once the cron jobs are
# removed, since nothing will look at them.
file {
'/etc/cron.daily/newsyslog': ensure => absent;
'/etc/cron.weekly/newsyslog': ensure => absent;
'/etc/cron.monthly/newsyslog': ensure => absent;
}
}