bundlewrap/bundles/letsencrypt/metadata.py
Franziska Kunsmann 38b449af35
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
bundles/letsencrypt: only run dehydrated after installing it
2021-12-19 14:17:41 +01:00

24 lines
747 B
Python

defaults = {
'apt': {
'packages': {
'dehydrated': {
'needed_by': {
'action:letsencrypt_update_certificates',
},
},
},
},
'cron': {
'letsencrypt_renew': '{} 4 * * * root /usr/bin/dehydrated --cron --accept-terms --challenge http-01 > /dev/null'.format((node.magic_number % 60)),
'letsencrypt_cleanup': '{} 4 * * 0 root /usr/bin/dehydrated --cleanup > /dev/null'.format((node.magic_number % 60)),
},
'pacman': {
'packages': {
'dehydrated': {
'needed_by': {
'action:letsencrypt_update_certificates',
},
},
},
},
}