Skip to content

Instantly share code, notes, and snippets.

@boltronics
Created September 15, 2016 02:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boltronics/2d94e29209a6566ec44fab7904ae3e2d to your computer and use it in GitHub Desktop.
Save boltronics/2d94e29209a6566ec44fab7904ae3e2d to your computer and use it in GitHub Desktop.
resolvconf:
pkg:
- installed
/etc/resolvconf/resolv.conf.d/base:
file.append:
- text: search {{ salt['cmd.run'](cmd='/bin/dnsdomainname', python_shell=True) }}
- require:
- pkg: resolvconf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment