init.sls 777 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # Authoritive FFHO DNS Server configuration (dns01/dns02 anycast)
  3. #
  4. include:
  5. - dns-server
  6. # Bind options
  7. /etc/bind/named.conf.options:
  8. file.managed:
  9. - source: salt://dns-server/auth/named.conf.options
  10. - template: jinja
  11. - require:
  12. - pkg: bind9
  13. - watch_in:
  14. - cmd: rndc-reload
  15. # Configure authoritive zones in local config
  16. /etc/bind/named.conf.local:
  17. file.managed:
  18. - source: salt://dns-server/auth/named.conf.local
  19. - require:
  20. - pkg: bind9
  21. - watch_in:
  22. - cmd: rndc-reload
  23. # Copy zonefiles
  24. /etc/bind/zones/_tree:
  25. file.recurse:
  26. - name: /etc/bind/zones
  27. - source: salt://dns-server/auth/zones
  28. - file_mode: 644
  29. - dir_mode: 755
  30. - user: root
  31. - group: root
  32. - watch_in:
  33. - cmd: rndc-reload