- pin bundlewrap ~=5.0 - rewrite non-reading and KeyError-driven metadata reactors per https://docs.bundlewrap.org/guide/migrate_45/ (defaults / metadata.get paths / MetadataUnavailable) - rename custom Download item methods (cdict/sdict/get_auto_deps -> expected_state/actual_state/get_auto_attrs) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
29 lines
569 B
Python
29 lines
569 B
Python
h = repo.libs.hashable.hashable
|
|
|
|
defaults = {
|
|
'systemd-journald': {
|
|
'Storage': 'volatile',
|
|
},
|
|
}
|
|
|
|
if node.has_bundle('zfs'):
|
|
defaults['zfs'] = {
|
|
'kernel_params': {
|
|
'zfs_txg_timeout': 300,
|
|
},
|
|
}
|
|
|
|
|
|
@metadata_reactor.provides(
|
|
'telegraf/agent',
|
|
)
|
|
def telegraf(metadata):
|
|
metadata.get('telegraf/agent') # only override if telegraf bundle is present
|
|
return {
|
|
'telegraf': {
|
|
'agent': {
|
|
'flush_interval': '30s',
|
|
'interval': '1m',
|
|
},
|
|
},
|
|
}
|