diff --git a/bundles/basic/items.py b/bundles/basic/items.py index 197c952..e0f9242 100644 --- a/bundles/basic/items.py +++ b/bundles/basic/items.py @@ -29,6 +29,17 @@ files = { }, } +if node.has_any_bundle([ + 'dovecot', + 'nginx', + 'postfix', +]): + actions['generate-dhparam'] = { + 'command': 'openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048', + 'unless': 'test -f /etc/ssl/certs/dhparam.pem', + } + + locale_needs = set() for locale in sorted(node.metadata.get('locale/installed')): actions[f'ensure_locale_{locale}_is_enabled'] = { @@ -41,11 +52,9 @@ for locale in sorted(node.metadata.get('locale/installed')): } locale_needs = {f'action:ensure_locale_{locale}_is_enabled'} -actions = { - 'locale-gen': { - 'triggered': True, - 'command': 'locale-gen', - }, +actions['locale-gen'] = { + 'triggered': True, + 'command': 'locale-gen', } description = [] diff --git a/bundles/dovecot/files/dovecot.conf b/bundles/dovecot/files/dovecot.conf index 19dea4f..804c6a9 100644 --- a/bundles/dovecot/files/dovecot.conf +++ b/bundles/dovecot/files/dovecot.conf @@ -28,13 +28,13 @@ namespace inbox { mail_location = maildir:/var/mail/vmail/%d/%n protocols = imap lmtp sieve -ssl = yes +ssl = required ssl_cert = relay_domains = $mydestination, pgsql:/etc/postfix/pgsql/relay_domains.cf