copy_puppet_logs: copy audit.log if it does exist

/var/log/audit/audit.log contains SElinux logs that we sometimes need
for debug, since Puppet OpenStack CI is running SElinux in enforced
mode.

This file will be useful for us so we would like to copy it from nodes.

Change-Id: Ic554dcad8d28b9cbc612019002b19982c53e74f7
This commit is contained in:
Emilien Macchi 2016-04-11 19:31:19 -04:00
parent 5c6ee77f47
commit b1b9e3253d

View File

@ -139,6 +139,10 @@ if [ -d ${apache_logs} ]; then
sudo cp -r ${apache_logs} $LOG_DIR/apache
fi
if [ -f /var/log/audit/audit.log ]; then
sudo cp /var/log/audit/audit.log $LOG_DIR/audit.log.txt
fi
if [ -d /tmp/openstack/tempest ]; then
sudo cp /tmp/openstack/tempest/etc/tempest.conf $LOG_DIR/tempest.conf.txt
fi