bundles/zfs: debian bullseye does not need zfs from backports

This commit is contained in:
Franzi 2021-07-01 18:19:24 +02:00
parent 6d5085c1e7
commit 210ae8dd2e
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -33,14 +33,6 @@ defaults = {
}, },
}, },
}, },
'repos': {
'backports': {
'install_gpg_key': False, # default debian signing key
'items': {
'deb http://deb.debian.org/debian {os_release}-backports main',
},
},
},
}, },
'cron': { 'cron': {
'zfs-auto-snapshot-daily': '0 0 * * * root /usr/local/sbin/zfs-auto-snapshot daily', 'zfs-auto-snapshot-daily': '0 0 * * * root /usr/local/sbin/zfs-auto-snapshot daily',
@ -78,6 +70,16 @@ defaults = {
}, },
} }
if node.os == 'debian' and node.os_version[0] <= 10:
defaults['apt']['repos'] = {
'backports': {
'install_gpg_key': False, # default debian signing key
'items': {
'deb http://deb.debian.org/debian {os_release}-backports main',
},
},
}
if node.has_bundle('telegraf'): if node.has_bundle('telegraf'):
defaults['telegraf'] = { defaults['telegraf'] = {
'input_plugins': { 'input_plugins': {
@ -100,7 +102,6 @@ if node.has_bundle('telegraf'):
} }
@metadata_reactor.provides( @metadata_reactor.provides(
'cron/zfs-scrub', 'cron/zfs-scrub',
) )