|
|
|
|
|
|
|
|
file: |
|
|
file: |
|
|
- managed |
|
|
- managed |
|
|
- name: {{ datamap.resolver.path|default('/etc/resolv.conf') }} |
|
|
- name: {{ datamap.resolver.path|default('/etc/resolv.conf') }} |
|
|
- mode: {{ datamap.resolver.mode|default(644) }} |
|
|
|
|
|
- user: {{ datamap.resolver.user|default('root') }} |
|
|
- user: {{ datamap.resolver.user|default('root') }} |
|
|
- group: {{ datamap.resolver.group|default('root') }} |
|
|
- group: {{ datamap.resolver.group|default('root') }} |
|
|
|
|
|
- mode: {{ datamap.resolver.mode|default(644) }} |
|
|
- contents: | |
|
|
- contents: | |
|
|
{%- if salt['pillar.get']('network:resolver:file_prepend', False) %} |
|
|
{%- if salt['pillar.get']('network:resolver:file_prepend', False) %} |
|
|
{{ salt['pillar.get']('network:resolver:file_prepend') }} |
|
|
{{ salt['pillar.get']('network:resolver:file_prepend') }} |