bundles/zfs: move icinga2_api to metadata defaults

This commit is contained in:
Franzi 2021-02-13 08:37:00 +01:00
parent 2fbbaa1586
commit 7aeb46382d
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -48,22 +48,6 @@ defaults = {
'zfs-auto-snapshot-monthly': '0 0 1 * * root /usr/local/sbin/zfs-auto-snapshot monthly',
'zfs-auto-snapshot-weekly': '0 0 * * 7 root /usr/local/sbin/zfs-auto-snapshot weekly',
},
'zfs': {
'datasets': {},
'pools': {},
'snapshots': {
'retain_defaults': {
'hourly': 24,
'daily': 7,
'weekly': 2,
'monthly': 1,
},
},
},
}
if node.has_bundle('sshmon'):
defaults.update({
'icinga2_api': {
'zfs': {
'services': {
@ -80,7 +64,19 @@ if node.has_bundle('sshmon'):
},
},
},
})
'zfs': {
'datasets': {},
'pools': {},
'snapshots': {
'retain_defaults': {
'hourly': 24,
'daily': 7,
'weekly': 2,
'monthly': 1,
},
},
},
}
@metadata_reactor.provides(