updated opendkim state

This commit is contained in:
Paul 2023-03-10 00:08:09 +01:00
parent 866f0a7015
commit 354f8a9b82
2 changed files with 11 additions and 12 deletions

View File

@ -1,8 +1,7 @@
{%- import_yaml "opendkim/defaults.yaml" as defaults %} {%- import_yaml "opendkim/defaults.yaml" as defaults %}
{%- set opendkim = salt['pillar.get']( {%- set opendkim = salt['pillar.get']('opendkim', default=defaults.opendkim, merge=True)-%}
'opendkim',
default=defaults.opendkim, {%- set net = salt['pillar.get']('net', default=defaults, merge=True) -%}
merge=True
) {%- set hostnames = salt['pillar.get']('mail:hostnames', default=defaults) -%}
-%}

View File

@ -1,9 +1,9 @@
{%- for key, value in salt['pillar.get']('net:ipv4_networks').items() %} {%- from "opendkim/map.jinja" import opendkim with context %}
{{ value.ip }}/{{ value.mask }} {%- from "opendkim/map.jinja" import net with context %}
{%- from "opendkim/map.jinja" import hostnames with context %}
{%- for network in net.ip_networks %}
{{ network }}
{%- endfor %} {%- endfor %}
{%- for key, value in salt['pillar.get']('net:ipv6_networks').items() %} {%- for hostname in hostnames %}
{{ value.ip }}/{{ value.mask }}
{%- endfor %}
{%- for hostname in salt['pillar.get']('mail:hostnames') %}
{{ hostname }} {{ hostname }}
{%- endfor %} {%- endfor %}