updated opendkim state
This commit is contained in:
parent
866f0a7015
commit
354f8a9b82
@ -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) -%}
|
||||||
-%}
|
|
||||||
|
@ -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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user