This SaltStack formula allows to update /etc/resolv.conf on minions. How to use it:
- Add git fileserver backend to your master config:
fileserver_backend:
- roots
- git
- Add formula git URL to gitfs_remotes in your master config:
gitfs_remotes:
- git+ssh://git@github.com/saltstack-formulas/resolver-formula.git
- Extend formula by your settings:
include:
- resolver
extend:
/etc/resolv.conf:
file.managed:
- context:
searchpath: your.domain.name
nameservers:
- 192.168.1.1