{%- from "linux/map.jinja" import network with context -%} | |
# Managed by Salt | |
{%- if network.resolv.domain is defined %} | |
domain {{ network.resolv.domain }} | |
{%- endif %} | |
{%- if network.resolv.search is defined %} | |
search {{ network.resolv.search|join(' ') }} | |
{%- endif %} | |
{%- for ns in network.resolv.dns|d([]) %} | |
nameserver {{ ns }} | |
{%- endfor %} | |
{%- for opt in network.resolv.options|d([]) %} | |
options {{ opt }} | |
{%- endfor %} |