bundles/letsencrypt: prepare for arch linux

This commit is contained in:
Franzi 2021-06-01 16:52:52 +02:00
parent cf3c45fdd5
commit fba83415c7
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 13 additions and 2 deletions

View file

@ -1,7 +1,8 @@
repo.libs.tools.require_bundle(node, 'nginx', 'letsencrypt bundle needs nginx for http challenge')
pkg_apt = {
'dehydrated': {},
directories = {
'/etc/dehydrated/conf.d': {},
'/var/lib/dehydrated/acme-challenges': {},
}
actions = {

View file

@ -1,6 +1,16 @@
defaults = {
'apt': {
'packages': {
'dehydrated': {},
},
},
'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': {},
},
},
}