bundles/zfs: move icinga2_api to metadata defaults
This commit is contained in:
parent
2fbbaa1586
commit
7aeb46382d
1 changed files with 16 additions and 20 deletions
|
@ -48,22 +48,6 @@ defaults = {
|
||||||
'zfs-auto-snapshot-monthly': '0 0 1 * * root /usr/local/sbin/zfs-auto-snapshot monthly',
|
'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-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': {
|
'icinga2_api': {
|
||||||
'zfs': {
|
'zfs': {
|
||||||
'services': {
|
'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(
|
@metadata_reactor.provides(
|
||||||
|
|
Loading…
Add table
Reference in a new issue