- 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>
23 lines
486 B
Python
23 lines
486 B
Python
defaults = {
|
|
'systemd-timers': {
|
|
'raspberrymatic-cert': {
|
|
'command': '/opt/raspberrymatic-cert',
|
|
'when': 'daily',
|
|
},
|
|
},
|
|
}
|
|
|
|
|
|
@metadata_reactor.provides(
|
|
'letsencrypt/domains',
|
|
)
|
|
def letsencrypt(metadata):
|
|
return {
|
|
'letsencrypt': {
|
|
'domains': {
|
|
metadata.get('raspberrymatic-cert/domain'): {
|
|
'start': ['raspberrymatic-cert'],
|
|
},
|
|
},
|
|
},
|
|
}
|