rsyslog::client::remote_type: 'udp'
rsyslog::client::server: 'loghost.pixelpark.com'
+#####################################################
+# Logrotation
+
+infra::profile::logrotate::config:
+ rotate_every: 'week'
+ rotate: 4
+ create: true
+ dateext: true
+ compress: true
+ delaycompress: true
+ missingok: true
+ mail: false
+ olddir: false
+ ifempty: false
+
+infra::profile::logrotate::rules:
+ wtmp:
+ path: '/var/log/wtmp'
+ missingok: true
+ dateext: true
+ rotate_every: 'month'
+ create: true
+ create_mode: '0664'
+ create_owner: 'root'
+ create_group: 'utmp'
+ minsize: '1M'
+ rotate: 12
+ btmp:
+ path: '/var/log/btmp'
+ missingok: true
+ dateext: true
+ rotate_every: 'month'
+ create: true
+ create_mode: '0600'
+ create_owner: 'root'
+ create_group: 'utmp'
+ minsize: '1M'
+ rotate: 1
+
+#####################################################
+# Account definitions
accounts::users:
philipp.dallig:
shell: "nologin"
sudo: false
uid: 20031
+
+# vim: et list
# Logrotation
infra::profile::logrotate::config:
- rotate_every: 'week'
- rotate: 4
- create: true
- dateext: true
dateformat: '-%Y-%m-%d'
- compress: true
- delaycompress: true
- missingok: true
- mail: false
- olddir: false
- ifempty: false
infra::profile::logrotate::rules:
wtmp:
- path: '/var/log/wtmp'
- missingok: true
- dateext: true
dateformat: '-%Y-%m-%d'
- rotate_every: 'month'
- create: true
- create_mode: '0664'
- create_owner: 'root'
- create_group: 'utmp'
- minsize: '1M'
- rotate: 12
btmp:
- path: '/var/log/btmp'
- missingok: true
- dateext: true
dateformat: '-%Y-%m-%d'
- rotate_every: 'month'
- create: true
- create_mode: '0600'
- create_owner: 'root'
- create_group: 'utmp'
- minsize: '1M'
- rotate: 1
named:
path: '/var/log/named/*.log'
rotate_every: 'day'
/usr/bin/systemctl reload named-sdb-chroot.service > /dev/null 2>&1 || true
/usr/bin/systemctl reload named-pkcs11.service > /dev/null 2>&1 || true
+# vim: et list
# Rsyslog configuration
# Logrotation
-infra::profile::logrotate::config:
- dateformat: '-%Y-%m-%d'
-
infra::profile::logrotate::rules:
samba:
path: '/var/log/samba/*'
copytruncate: true
sharedscripts: true
-# vim: et
+# vim: et list
--- /dev/null
+---
+
+#####################################################
+# Logrotation
+
+infra::profile::logrotate::config:
+ dateformat: '-%Y-%m-%d'
+
+infra::profile::logrotate::rules:
+ wtmp:
+ dateformat: '-%Y-%m-%d'
+ btmp:
+ dateformat: '-%Y-%m-%d'
+
+# vim: et list