wip
This commit is contained in:
parent
0e5d96aa98
commit
cd41ed503b
4 changed files with 18 additions and 6 deletions
|
@ -1,6 +1,4 @@
|
||||||
assert node.has_bundle('postfix')
|
assert node.has_bundle('mailserver')
|
||||||
assert node.has_bundle('postgresql')
|
|
||||||
assert node.has_bundle('letsencrypt')
|
|
||||||
|
|
||||||
directories = {
|
directories = {
|
||||||
'/etc/dovecot/ssl': {},
|
'/etc/dovecot/ssl': {},
|
||||||
|
@ -48,6 +46,7 @@ actions = {
|
||||||
svc_systemd = {
|
svc_systemd = {
|
||||||
'dovecot': {
|
'dovecot': {
|
||||||
'needs': {
|
'needs': {
|
||||||
|
'action:letsencrypt_update_certificates',
|
||||||
'action:dovecot_generate_dhparam',
|
'action:dovecot_generate_dhparam',
|
||||||
'file:/etc/dovecot/dovecot.conf',
|
'file:/etc/dovecot/dovecot.conf',
|
||||||
'file:/etc/dovecot/dovecot-sql.conf',
|
'file:/etc/dovecot/dovecot-sql.conf',
|
||||||
|
|
3
bundles/mailserver/items.py
Normal file
3
bundles/mailserver/items.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
assert node.has_bundle('postfix')
|
||||||
|
assert node.has_bundle('dovecot')
|
||||||
|
assert node.has_bundle('letsencrypt')
|
|
@ -31,3 +31,15 @@ defaults = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@metadata_reactor.provides(
|
||||||
|
'letsencrypt/domains',
|
||||||
|
)
|
||||||
|
def letsencrypt(metadata):
|
||||||
|
return {
|
||||||
|
'letsencrypt': {
|
||||||
|
'domains': {
|
||||||
|
metadata.get('mailserver/hostname'): set(),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
assert node.has_bundle('postgresql')
|
assert node.has_bundle('mailserver')
|
||||||
assert node.has_bundle('dovecot')
|
|
||||||
assert node.has_bundle('letsencrypt')
|
|
||||||
|
|
||||||
file_options = {
|
file_options = {
|
||||||
'triggers': [
|
'triggers': [
|
||||||
|
|
Loading…
Reference in a new issue