Skip to content
Snippets Groups Projects
Commit 46284e3b authored by Jan Philipp Timme's avatar Jan Philipp Timme
Browse files

Manage /etc/resolv.conf properly with defaults.yaml

parent b42af1c6
No related branches found
No related tags found
No related merge requests found
......@@ -11,3 +11,6 @@ hshbase:
system: en_US.UTF-8
present:
- de_DE.UTF-8
dns:
- 192.108.52.10
- 141.71.2.121
......@@ -9,3 +9,4 @@ include:
- .time
- .locale
- .hostname
- .resolvconf
{%- from "hshbase/map.jinja" import hshbase with context-%}
### THIS FILE IS MANAGED BY SALT!
### YOUR CHANGES WILL BE OVERWRITTEN!
{% for resolver in hshbase['dns'] -%}
nameserver {{ resolver }}
{% endfor %}
hshbase_resolvconf_file:
file.managed:
- name: /etc/resolv.conf
- template: jinja
- source: salt://hshbase/resolvconf/files/resolv.conf
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment