12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- # Module:: public
- # Manifest:: dns/authoritative.pp
- #
- # Author:: Julien Vaubourg (<julien@vaubourg.com>)
- # Date:: 2013-09-21 13:36:02 +0200
- # Maintainer:: Julien Vaubourg (<julien@vaubourg.com>)
- # Sebastien Badia (<seb@sebian.fr>)
- #
- # Class:: public::dns::authoritative inherits dns
- #
- #
- class public::dns::authoritative inherits dns {
- package { 'zonecheck':
- ensure => installed,
- }
- # Configurations
- bind::server::file { [
- 'named.conf',
- # from named.conf
- 'acl.conf',
- 'named.conf.local',
- 'named.conf.options',
- 'divers.conf',
- 'adherents.conf',
- ]:
- zonedir => '/etc/bind',
- owner => 'bind',
- group => 'bind',
- source_base => 'puppet:///modules/public/authoritative/confs/',
- # require => File['/etc/all-knowing-dns.conf'],
- }
- file {
- '/etc/bind/zones':
- ensure => directory,
- owner => 'bind',
- group => 'bind',
- }
- $zones = hiera_hash('zones', {})
- create_resources(public::dns::zone, $zones)
- } # Class:: public::dns::authoritative inherits dns
|