This commit is contained in:
mwiegand 2021-06-13 19:09:50 +02:00
parent 0e5d96aa98
commit cd41ed503b
4 changed files with 18 additions and 6 deletions

View file

@ -1,6 +1,4 @@
assert node.has_bundle('postfix')
assert node.has_bundle('postgresql')
assert node.has_bundle('letsencrypt')
assert node.has_bundle('mailserver')
directories = {
'/etc/dovecot/ssl': {},
@ -48,6 +46,7 @@ actions = {
svc_systemd = {
'dovecot': {
'needs': {
'action:letsencrypt_update_certificates',
'action:dovecot_generate_dhparam',
'file:/etc/dovecot/dovecot.conf',
'file:/etc/dovecot/dovecot-sql.conf',

View file

@ -0,0 +1,3 @@
assert node.has_bundle('postfix')
assert node.has_bundle('dovecot')
assert node.has_bundle('letsencrypt')

View file

@ -31,3 +31,15 @@ defaults = {
},
},
}
@metadata_reactor.provides(
'letsencrypt/domains',
)
def letsencrypt(metadata):
return {
'letsencrypt': {
'domains': {
metadata.get('mailserver/hostname'): set(),
},
},
}

View file

@ -1,6 +1,4 @@
assert node.has_bundle('postgresql')
assert node.has_bundle('dovecot')
assert node.has_bundle('letsencrypt')
assert node.has_bundle('mailserver')
file_options = {
'triggers': [