EPXIdDA8BgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBD/aCWYpB6KwUIcLp1T
EKskgBArkfXhMZNEUfrTvFILs4Ig]
+#####################################################
+# Rsyslog configuration
+rsyslog::client::log_local: true
+rsyslog::client::log_remote: true
+rsyslog::client::remote_type: 'udp'
+rsyslog::client::server: 'loghost.pixelpark.com'
+#rsyslog::client::remote_forward_format: ''
+
+#####################################################
+# Logrotation
+
+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
+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
# Postfix configuration:
#####################################################
-# rsyslog configuration
-rsyslog::client::log_local: true
-rsyslog::client::log_remote: true
-rsyslog::client::remote_type: 'udp'
-rsyslog::client::server: 'loghost.pixelpark.com'
-#rsyslog::client::remote_forward_format: ''
+# Rsyslog configuration
rsyslog::client::log_local_custom: |
auth.* /var/log/auth.log
local6.* /var/log/freshclam.log
# Logrotation
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
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
samba:
path: '/var/log/samba/*'
ifempty: false