bundlewrap/bundles/letsencrypt/metadata.py

30 lines
899 B
Python
Raw Normal View History

2020-08-18 13:27:55 +00:00
defaults = {
'apt': {
'packages': {
2021-12-23 18:38:21 +00:00
'openssl': {
'needed_by': {
'action:letsencrypt_update_certificates',
},
},
'dehydrated': {
'needed_by': {
'action:letsencrypt_update_certificates',
},
},
},
},
2020-08-18 13:27:55 +00:00
'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)),
2020-08-18 13:27:55 +00:00
},
'pacman': {
'packages': {
'dehydrated': {
'needed_by': {
'action:letsencrypt_update_certificates',
},
},
},
},
2020-08-18 13:27:55 +00:00
}