authoritative.pp 897 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. include '::bind'
  10. package { 'zonecheck':
  11. ensure => installed,
  12. }
  13. # Configurations
  14. bind::server::file { [
  15. 'named.conf',
  16. # from named.conf
  17. 'acl.conf',
  18. 'named.conf.local',
  19. 'named.conf.options',
  20. 'divers.conf',
  21. 'adherents.conf',
  22. ]:
  23. zonedir => '/etc/bind',
  24. owner => 'bind',
  25. group => 'bind',
  26. source_base => 'puppet:///modules/private/authoritative/confs/',
  27. # require => File['/etc/all-knowing-dns.conf'],
  28. }
  29. file {
  30. '/etc/bind/zones':
  31. ensure => directory,
  32. owner => 'bind',
  33. group => 'bind',
  34. }
  35. $zones = hiera_hash('zones', {})
  36. create_resources(public::dns::zone, $zones)
  37. } # Class:: public::dns::authoritative