Added generating sha1 checksums for rotated logs.
This commit is contained in:
parent
7419c306ef
commit
f1d7f518d1
2 changed files with 5 additions and 0 deletions
|
@ -74,4 +74,7 @@ restart_syslog
|
|||
|
||||
for log in ${LOGS}; do
|
||||
gzip -f ${log} || myerror "Error while gzipping ${log}"
|
||||
log="${log}.gz"
|
||||
echo "`openssl dgst -sha1 ${log} | cut -d ' ' -f 2` `basename ${log}`" > \
|
||||
${log}.sha1
|
||||
done
|
||||
|
|
|
@ -221,6 +221,8 @@ class syslog::client::rsyslog {
|
|||
#
|
||||
class syslog::common::standalone inherits syslog::common {
|
||||
|
||||
require ssl::openssl
|
||||
|
||||
if !$syslog_rotate {
|
||||
$syslog_rotate = [ "all.log" ]
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue