Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This is the logrotate.sls file.
- /etc/logrotate.d/syslog:
- file:
- - managed
- - source: salt://system/logrotate/syslog
- - user: root
- - group: root
- - mode: 644
- syslog as follows:
- /var/log/cron
- /var/log/maillog
- /var/log/messages
- /var/log/secure
- /var/log/spooler
- {
- daily
- dateext
- dateformat -%Y-%m-%d-%s
- create
- rotate 7
- size 100M
- missingok
- notifempty
- delaycompress
- compress
- sharedscripts
- postrotate
- /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
- endscript
- }
- however when i run "#salt 'SDC1*' logrotate.show_conf"
- syslog:
- - /var/log/secure
- - /var/log/messages
- - /var/log/maillog
- - /var/log/cron
- - /var/log/spooler
- - {
- up2date:
- - /var/log/up2date
- yum:
- - /var/log/yum.log
- rotate:
- 4
- weekly:
- True
- {:
- ----------
- /bin/kill:
- -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
- endscript:
- True
- postrotate:
- True
- sharedscripts:
- True
- if my understanding correct this output is different from what is configured above for syslog. This output taking from what was configured in /etc/logrotate.conf and /etc/logrotate.d/syslog
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement