bundlewrap/bundles/letsencrypt/items.py

30 lines
638 B
Python
Raw Normal View History

2020-06-01 08:26:37 +00:00
assert node.has_bundle('nginx'), 'letsencrypt needs nginx'
pkg_apt = {
'dehydrated': {},
}
actions = {
'letsencrypt_update_certificates': {
'command': 'dehydrated --cron --accept-terms --ocsp --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',
},
2020-06-01 08:26:37 +00:00
}