authoritative.pp 822 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Module:: public
  2. # Manifest:: dns/authoritative.pp
  3. #
  4. # Lorraine Data Network http://ldn-fai.net/
  5. # Class:: public::dns::authoritative
  6. #
  7. #
  8. class public::dns::authoritative(
  9. $zones = {}
  10. ) {
  11. include '::bind'
  12. package { 'zonecheck':
  13. ensure => installed,
  14. }
  15. # Configurations
  16. bind::server::file { [
  17. 'named.conf',
  18. # from named.conf
  19. 'acl.conf',
  20. 'named.conf.local',
  21. 'named.conf.options',
  22. 'divers.conf',
  23. 'adherents.conf',
  24. ]:
  25. zonedir => '/etc/bind',
  26. owner => 'bind',
  27. group => 'bind',
  28. source_base => 'puppet:///modules/private/authoritative/confs/',
  29. }
  30. file {
  31. '/etc/bind/zones':
  32. ensure => directory,
  33. owner => 'bind',
  34. group => 'bind',
  35. }
  36. create_resources(public::dns::zone, $zones)
  37. } # Class:: public::dns::authoritative