Created
May 4, 2016 16:02
-
-
Save anonymous/308553eab6c0210a9d33146c6bbf838a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/resolv.conf: | |
file.managed: | |
- user: root | |
- group: root | |
- mode: '0644' | |
- source: salt://selections/resolver/files/resolv.conf | |
- template: jinja | |
- defaults: | |
{% if salt['grains.get']('domain') == 'chi1' or salt['grains.get']('domain') == 'aur1' %} | |
nameservers: {{ salt['pillar.get']('resolver:nameservers', ['172.16.200.181','172.16.208.81']) }} | |
{% else %} | |
nameservers: {{ salt['pillar.get']('resolver:nameservers', ['172.16.208.81','172.16.200.181']) }} | |
{% endif %} | |
searchpaths: {{ salt['pillar.get']('resolver:searchpaths', [salt['grains.get']('domain'),]) }} | |
options: {{ salt['pillar.get']('resolver:options', []) }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment