-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "sm-storage: fixed installation of storage role for new framewo…
…rk" into R2.1
- Loading branch information
Showing
3 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
contrail/environment/modules/contrail/files/config-storage-ceph-log-rotate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
## This is file is managed by puppet. | ||
## DON'T CHANGE ANYTHING HERE. | ||
## ANY CHANGES MADE WILL BE OVER-WRITTEN | ||
/var/log/ceph/*.log { | ||
rotate 7 | ||
daily | ||
size 500M | ||
compress | ||
sharedscripts | ||
postrotate | ||
if which invoke-rc.d > /dev/null 2>&1 && [ -x `which invoke-rc.d` ]; then | ||
invoke-rc.d ceph reload >/dev/null | ||
elif which service > /dev/null 2>&1 && [ -x `which service` ]; then | ||
service ceph reload >/dev/null | ||
fi | ||
# Possibly reload twice, but depending on ceph.conf the reload above may be a no-op | ||
if which initctl > /dev/null 2>&1 && [ -x `which initctl` ]; then | ||
for daemon in osd mon mds ; do | ||
find -L /var/lib/ceph/$daemon/ -mindepth 1 -maxdepth 1 -regextype posix-egrep -regex '.*/[A-Za-z0-9]+-[A-Za-z0-9._-]+' -printf '%P\n' \ | ||
| while read f; do | ||
if [ -e "/var/lib/ceph/$daemon/$f/done" ] && [ -e "/var/lib/ceph/$daemon/$f/upstart" ] && [ ! -e "/var/lib/ceph/$daemon/$f/sysvinit" ]; then | ||
cluster="${f%%-*}" | ||
id="${f#*-}" | ||
|
||
initctl reload ceph-$daemon cluster="$cluster" id="$id" 2>/dev/null || : | ||
fi | ||
done | ||
done | ||
fi | ||
endscript | ||
missingok | ||
notifempty | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters