Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@ip-10-1-2-211:~/lystable-salt# salt -C 'G@role:logstash' state.apply logrotate
- ip-10-1-20-59.ec2.internal:
- Summary for ip-10-1-20-59.ec2.internal
- ------------
- Succeeded: 3
- Failed: 0
- ------------
- Total states run: 3
- root@ip-10-1-2-211:~/lystable-salt# salt -C 'G@role:logstash' pillar.get logrotate
- ip-10-1-20-59.ec2.internal:
- ----------
- jobs:
- ----------
- logrotate.test:
- ----------
- config:
- - weekly
- - missingok
- - rotate 52
- - compress
- - delaycompress
- - notifempty
- - create 640 root adm
- - sharedscripts
- path:
- - /tmp/logrotate.test
- lookup:
- ----------
- pkg:
- logrotate
- service:
- cron
- root@ip-10-1-20-59:~# ls -larth /etc/logrotate.d/
- total 56K
- -rw-r--r-- 1 root root 515 Dec 4 2013 rsyslog
- -rw-r--r-- 1 root root 177 Dec 6 2013 unattended-upgrades
- -rw-r--r-- 1 root root 79 Feb 18 2014 aptitude
- -rw-r--r-- 1 root root 178 Feb 28 2014 ufw
- -rw-r--r-- 1 root root 232 Mar 7 2014 dpkg
- -rw-r--r-- 1 root root 173 Apr 10 2014 apt
- -rw-r--r-- 1 root root 122 Apr 11 2014 upstart
- -rw-r--r-- 1 root root 94 Nov 25 2014 ppp
- -rw-r--r-- 1 root root 609 Jan 8 2015 landscape-client
- -rw-r--r-- 1 root root 126 Mar 18 2015 apport
- -rw-r--r-- 1 root root 346 Jul 30 2015 nginx
- -rw-r--r-- 1 root root 227 Mar 18 04:04 salt-common
- drwxr-xr-x 2 root root 4.0K Jun 16 21:44 .
- drwxr-xr-x 105 root root 4.0K Jun 20 20:16 ..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement