wip
This commit is contained in:
parent
b2d93de057
commit
bad7977ffc
4 changed files with 5 additions and 18 deletions
|
@ -25,7 +25,6 @@ directories = {
|
||||||
'group': 'vmail',
|
'group': 'vmail',
|
||||||
},
|
},
|
||||||
'/var/vmail/sieve/global': {
|
'/var/vmail/sieve/global': {
|
||||||
'purge': True,
|
|
||||||
'owner': 'vmail',
|
'owner': 'vmail',
|
||||||
'group': 'vmail',
|
'group': 'vmail',
|
||||||
},
|
},
|
||||||
|
|
3
bundles/rspamd/files/local.d/ip_whitelist.map
Normal file
3
bundles/rspamd/files/local.d/ip_whitelist.map
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
% for ip in sorted(node.metadata.get('rspamd/ip_whitelist')):
|
||||||
|
${ip}
|
||||||
|
% endfor
|
|
@ -24,25 +24,9 @@ directories = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
files = {
|
|
||||||
'/etc/rspamd/local.d/ip_whitelist.map': {
|
|
||||||
'content': '\n'.join(
|
|
||||||
sorted(node.metadata.get('rspamd/ip_whitelist'))
|
|
||||||
) + '\n',
|
|
||||||
'triggers': {
|
|
||||||
'svc_systemd:rspamd:restart',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'/etc/rspamd/local.d/worker-controller.inc': {
|
|
||||||
'content_type': 'mako',
|
|
||||||
'triggers': {
|
|
||||||
'svc_systemd:rspamd:restart',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for f in listdir(join(f'{repo.path}/bundles/rspamd/files/local.d')):
|
for f in listdir(join(f'{repo.path}/bundles/rspamd/files/local.d')):
|
||||||
files[f'/etc/rspamd/local.d/{f}'] = {
|
files[f'/etc/rspamd/local.d/{f}'] = {
|
||||||
|
'content_type': 'mako',
|
||||||
'source': f'local.d/{f}',
|
'source': f'local.d/{f}',
|
||||||
'triggers': {
|
'triggers': {
|
||||||
'svc_systemd:rspamd:restart',
|
'svc_systemd:rspamd:restart',
|
||||||
|
@ -51,6 +35,7 @@ for f in listdir(join(f'{repo.path}/bundles/rspamd/files/local.d')):
|
||||||
|
|
||||||
for f in listdir(join(f'{repo.path}/bundles/rspamd/files/override.d')):
|
for f in listdir(join(f'{repo.path}/bundles/rspamd/files/override.d')):
|
||||||
files[f'/etc/rspamd/override.d/{f}'] = {
|
files[f'/etc/rspamd/override.d/{f}'] = {
|
||||||
|
'content_type': 'mako',
|
||||||
'source': f'override.d/{f}',
|
'source': f'override.d/{f}',
|
||||||
'triggers': {
|
'triggers': {
|
||||||
'svc_systemd:rspamd:restart',
|
'svc_systemd:rspamd:restart',
|
||||||
|
|
Loading…
Reference in a new issue