init.sls 386 B

12345678910111213141516171819202122232425262728
  1. #
  2. # Bind name server
  3. #
  4. bind9:
  5. pkg.installed:
  6. - name: bind9
  7. service.running:
  8. - enable: True
  9. - reload: True
  10. # Create zones directory
  11. /etc/bind/zones/:
  12. file.directory:
  13. - makedirs: true
  14. - user: root
  15. - group: root
  16. - mode: 755
  17. - require:
  18. - pkg: bind9
  19. # Reload command
  20. rndc-reload:
  21. cmd.wait:
  22. - watch: []
  23. - name: /usr/sbin/rndc reload