bundles/cron: use MAILTO=, rework metadata syntax

This commit is contained in:
Franzi 2022-02-05 11:41:41 +01:00
parent 533f8075ca
commit 0d865c93d4
Signed by: kunsi
GPG key ID: 12E3D2136B818350
22 changed files with 113 additions and 65 deletions

View file

@ -83,7 +83,7 @@ def telegraf(metadata):
@metadata_reactor.provides(
'cron/smartd',
'cron/jobs/smartd',
)
def monthly_long_test(metadata):
lines = set()
@ -96,6 +96,8 @@ def monthly_long_test(metadata):
return {
'cron': {
'smartd': '\n'.join(sorted(lines)),
'jobs': {
'smartd': '\n'.join(sorted(lines)),
},
},
}