Puppet Class: dns::logging

Defined in:
manifests/logging.pp

Overview

Enable logging for named



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'manifests/logging.pp', line 3

class dns::logging {
  file { $dns::logdir:
    ensure => directory,
    owner  => $dns::params::user,
    group  => $dns::params::group,
    mode   => '0755',
  }

  concat::fragment { 'named.conf+50-logging-header.dns':
    target  => $dns::namedconf_path,
    content => "logging {\n",
    order   => 50,
  }

  concat::fragment { 'named.conf+60-logging-footer.dns':
    target  => $dns::namedconf_path,
    content => "};\n",
    order   => 60,
  }
}