bundles/backup-client: do logging
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
3fc51d9eba
commit
fa4fe51155
3 changed files with 17 additions and 1 deletions
|
@ -47,10 +47,16 @@ files['/usr/local/share/icinga/plugins/check_backup_last_run'] = {
|
|||
'mode': '0755',
|
||||
}
|
||||
|
||||
files['/etc/logrotate.d/backup-client'] = {
|
||||
'source': 'logrotate.conf',
|
||||
}
|
||||
|
||||
directories['/etc/backup-pre-hooks.d'] = {
|
||||
'purge': True,
|
||||
}
|
||||
|
||||
directories['/var/log/backup-client'] = {}
|
||||
|
||||
for hname, hcontent in node.metadata.get('backup-client/pre-hooks', {}).items():
|
||||
files[f'/etc/backup-pre-hooks.d/50-{hname}'] = {
|
||||
'content': '#!/bin/sh\n\n' + hcontent,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue