Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # vim: sw=2 ts=2 sts=2 et : |
| 4 | |
| 5 | rm -rf /etc/Pegasus/*.cnf /etc/Pegasus/*.crt /etc/Pegasus/*.csr \ |
| 6 | /etc/Pegasus/*.pem /etc/Pegasus/*.srl /root/anaconda-ks.cfg \ |
| 7 | /root/anaconda-post.log /root/initial-setup-ks.cfg /root/install.log \ |
| 8 | /root/install.log.syslog /var/cache/fontconfig/* /var/cache/gdm/* \ |
| 9 | /var/cache/man/* /var/lib/AccountService/users/* /var/lib/fprint/* \ |
| 10 | /var/lib/logrotate.status /var/log/*.log* /var/log/BackupPC/LOG \ |
| 11 | /var/log/ConsoleKit/* /var/log/anaconda.syslog /var/log/anaconda/* \ |
| 12 | /var/log/apache2/*_log /var/log/apache2/*_log-* /var/log/apt/* \ |
| 13 | /var/log/aptitude* /var/log/audit/* /var/log/btmp* /var/log/ceph/*.log \ |
| 14 | /var/log/chrony/*.log /var/log/cron* /var/log/cups/*_log /var/log/debug* \ |
| 15 | /var/log/dmesg* /var/log/exim4/* /var/log/faillog* /var/log/gdm/* \ |
| 16 | /var/log/glusterfs/*glusterd.vol.log /var/log/glusterfs/glusterfs.log \ |
| 17 | /var/log/httpd/*log /var/log/installer/* /var/log/jetty/jetty-console.log \ |
| 18 | /var/log/journal/* /var/log/lastlog* /var/log/libvirt/libvirtd.log \ |
| 19 | /var/log/libvirt/lxc/*.log /var/log/libvirt/qemu/*.log \ |
| 20 | /var/log/libvirt/uml/*.log /var/log/lightdm/* /var/log/mail/* \ |
| 21 | /var/log/maillog* /var/log/messages* /var/log/ntp /var/log/ntpstats/* \ |
| 22 | /var/log/ppp/connect-errors /var/log/rhsm/* /var/log/sa/* /var/log/secure* \ |
| 23 | /var/log/setroubleshoot/*.log /var/log/spooler* /var/log/squid/*.log \ |
| 24 | /var/log/syslog* /var/log/tallylog* /var/log/tuned/tuned.log /var/log/wtmp* \ |
| 25 | /var/named/data/named.run |
| 26 | |
| 27 | rm -rf ~/.viminfo /etc/ssh/ssh*key* /root/.ssh/* |
| 28 | |
| 29 | # kill any cloud-init related bits |
| 30 | rm -rf /var/lib/cloud/* |
| 31 | |
| 32 | # clean-up any manual packer uploads |
| 33 | rm -rf /tmp/packer |
| 34 | |
| 35 | # Force a system sync and sleep to get around any SSD issues |
| 36 | echo "Forcing sync and sleep for 10sec" |
| 37 | sync |
| 38 | sleep 10 |