opendkim: drop old on-node genkey approach

This commit is contained in:
CroneKorkN 2026-07-14 09:40:09 +02:00
parent 48e818d905
commit 052ff72358
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw

View file

@ -53,27 +53,6 @@ for domain in node.metadata.get('mailserver/domains'):
**file_attributes, **file_attributes,
'content': node.metadata.get(f'opendkim/keys/{domain}/private'), 'content': node.metadata.get(f'opendkim/keys/{domain}/private'),
} }
# files[f'/etc/opendkim/keys/{domain}/mail.txt'] = {
# **file_attributes,
# 'content_type': 'any',
# }
# actions[f'generate_{domain}_dkim_key'] = {
# 'command': (
# f'sudo --user opendkim'
# f' opendkim-genkey'
# f' --selector=mail'
# f' --directory=/etc/opendkim/keys/{domain}'
# f' --domain={domain}'
# ),
# 'unless': f'test -f /etc/opendkim/keys/{domain}/mail.private',
# 'needs': [
# 'svc_systemd:opendkim',
# f'directory:/etc/opendkim/keys/{domain}',
# ],
# 'triggers': [
# 'svc_systemd:opendkim:restart',
# ],
# }
svc_systemd['opendkim'] = { svc_systemd['opendkim'] = {
'needs': [ 'needs': [