wip
This commit is contained in:
parent
7ffde9de18
commit
8fab376959
1 changed files with 22 additions and 22 deletions
|
@ -52,29 +52,29 @@ for domain in node.metadata.get('opendkim/domains'):
|
||||||
}
|
}
|
||||||
files[f'/etc/opendkim/keys/{domain}/mail.private'] = {
|
files[f'/etc/opendkim/keys/{domain}/mail.private'] = {
|
||||||
**file_attributes,
|
**file_attributes,
|
||||||
'content_type': 'any',
|
'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',
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
|
# 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': [
|
||||||
|
|
Loading…
Reference in a new issue