Class bind::server
In: /modules/bind/manifests/server.pp
Parent:

Class: bind::server

Install and enable an ISC BIND server.

Parameters:

 $chroot:
  Enable chroot for the server. Default: false
 $bindpkgprefix:
  Package prefix name. Default: 'bind'

Sample Usage :

 include bind::server

 class { 'bind::server':
   chroot        => false,
   bindpkgprefix => 'bind97',
 }

Defines

conf   file  

Resources

Defines

conf( $forwarders => [], $listen_on_v6_addr => ['"::1"'], $zones => '', $memstatistics_file => '/var/named/data/named_mem_stats.txt', $dnssec_validation => 'yes', $dnssec_enable => 'yes', $dump_file => '/var/named/data/cache_dump.db', $statistics_file => '/var/named/data/named_stats.txt', $includes => [], $version => 'undef', $listen_on_v6_port => '53', $listen_on_addr => ['"127.0.0.1"'], $allow_query_cache => [], $listen_on_port => '53', $dnssec_lookaside => 'auto', $allow_transfer => [], $recursion => 'yes', $masters => '', $allow_query => ['"localhost"'], $directory => '/var/named', $allow_recursion => [], $acls => '' )
file( $source => 'undef', $zonedir => '/var/named', $group => 'named', $content => 'undef', $source_base => 'undef', $mode => '0640', $ensure => 'undef', $owner => 'root' )

Define: bind::server::file

ISC BIND server template-based or pre-created zone file definition. Either of $source or $content must be specificed when using it.

Parameters:

 $zonedir:
   Directory where to store the zone file. Default: '/var/named'
 $owner:
   Zone file user owner. Default: 'root'
 $group:
   Zone file group owner. Default: 'named'
 $mode:
   Zone file mode: Default: '0640'
 $source:
   Zone file content source. Default: none
 $source_base:
   Zone file content source base, where to look for a file named the same as
   the zone itselt. Default: none
 $content:
   Zone file content (usually template-based). Default: none
 $ensure:
   Whether the zone file should be 'present' or 'absent'. Default: present.

Sample Usage :

 bind::server::file { 'example.com':
   zonedir => '/var/named/chroot/var/named',
   source  => 'puppet:///files/dns/example.com',
 }

Resources

File[$bindlogdir]
   require => Package[$bindserverpkgname]
   ensure => directory
   owner => "root"
   group => "named"
   mode => "0770"
   seltype => "var_log_t"
Package[$bindserverpkgname]
   ensure => installed
Service["named"]
   require => Package[$bindserverpkgname]
   hasstatus => true
   enable => true
   ensure => running
   restart => "/sbin/service named reload"

[Validate]