swift: Fix missing log directory in Ubuntu
... and capture rsyslog config files to ensure that rsyslog is properly configured. Backport note: This backport includesfb7629634dto ensure the /etc/rsyslog.d directory is captured. Change-Id: I0b9884b092706f633513b2bd49d368efe924585a (cherry picked from commitb3251241be)
This commit is contained in:
2 changed files with 9 additions and 1 deletions
@@ -101,6 +101,14 @@ if which journalctl &> /dev/null; then
sudo journalctl --no-pager > $LOG_DIR/syslog.txt
fi
# rsyslog
if [ -d /etc/rsyslog.d ]; then
sudo cp -r /etc/rsyslog.d $LOG_DIR/etc/
fi
if [ -f /etc/rsyslog.conf ]; then
sudo cp /etc/rsyslog.conf $LOG_DIR/etc/
fi
# network interfaces
if [ -d /etc/sysconfig/network-scripts ]; then
sudo cp -r /etc/sysconfig/network-scripts $LOG_DIR/etc/sysconfig/
@@ -14,7 +14,7 @@ class openstack_integration::swift {
before => Anchor['swift::service::begin'],
}
if($facts['os']['name']=='Debian'){
if($facts['os']['family']=='Debian'){
# Ubuntu/Debian requires particular permissions for rsyslog to work
$log_dir_owner = $facts['os']['name'] ? {
'Debian' => 'swift',
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.