diff --git a/hshbase/defaults.yaml b/hshbase/defaults.yaml index 12acb97b68d4181038c16524ded8ca858f28ec61..f8fa2c2659ba01dc7c7a720153c9083e5a42f7f8 100644 --- a/hshbase/defaults.yaml +++ b/hshbase/defaults.yaml @@ -11,3 +11,6 @@ hshbase: system: en_US.UTF-8 present: - de_DE.UTF-8 + dns: + - 192.108.52.10 + - 141.71.2.121 diff --git a/hshbase/init.sls b/hshbase/init.sls index 06815f1cae0beaba17e688f36e91530d99902a69..7613e7f8b9636542fcccce895f9afb628f750f79 100644 --- a/hshbase/init.sls +++ b/hshbase/init.sls @@ -9,3 +9,4 @@ include: - .time - .locale - .hostname + - .resolvconf diff --git a/hshbase/resolvconf/files/resolv.conf b/hshbase/resolvconf/files/resolv.conf new file mode 100644 index 0000000000000000000000000000000000000000..df4cb921a71f7abb313cd00c05994a5dd096b6e2 --- /dev/null +++ b/hshbase/resolvconf/files/resolv.conf @@ -0,0 +1,6 @@ +{%- 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 %} diff --git a/hshbase/resolvconf/init.sls b/hshbase/resolvconf/init.sls new file mode 100644 index 0000000000000000000000000000000000000000..21da43ad256d68f7a05e2e2ad606b1b13e48531b --- /dev/null +++ b/hshbase/resolvconf/init.sls @@ -0,0 +1,5 @@ +hshbase_resolvconf_file: + file.managed: + - name: /etc/resolv.conf + - template: jinja + - source: salt://hshbase/resolvconf/files/resolv.conf