Restart rsyslog after installing Swift

This ensures that Swift logs end up in /var/log/swift/swift.log.

Closes-Bug: 1781350
Change-Id: Id5a6083f5dc3f8c569e0d0778722c1e52ff7cdef
This commit is contained in:
Christian Schwede 2018-07-12 09:40:59 +02:00
parent 3fc4cc7049
commit d3c6857a49
2 changed files with 10 additions and 0 deletions

View File

@ -477,6 +477,11 @@ ring_account_device { "${controller_host}:6002/1":
}
Ring_account_device<||> ~> Service['swift-proxy-server']
# Ensure rsyslog catches up change in /etc/rsyslog.d and forwards logs
exec { 'restart rsyslog':
command => '/bin/systemctl restart rsyslog',
}
# Apache
include ::apache

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Enforce a restart of rsyslog after installing Swift rpms. Otherwise all
Swift logs end up in /var/log/messages instead of /var/log/swift/swift.log