bundlewrap/bundles/letsencrypt/items.py
Franziska Kunsmann f7eb0cc150
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
bundles/{letsencrypt,nginx}: fix ocsp stapling
2020-07-19 12:10:19 +02:00

29 lines
631 B
Python

assert node.has_bundle('nginx'), 'letsencrypt needs nginx'
pkg_apt = {
'dehydrated': {},
}
actions = {
'letsencrypt_update_certificates': {
'command': 'dehydrated --cron --accept-terms --challenge http-01',
'triggered': True,
'needs': {
'pkg_apt:dehydrated',
},
},
}
files = {
'/etc/dehydrated/domains.txt': {
'content_type': 'mako',
'triggers': {
'action:letsencrypt_update_certificates',
},
},
'/etc/dehydrated/config': {},
'/etc/dehydrated/hook.sh': {
'content_type': 'mako',
'mode': '0755',
},
}