Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions manifests/server/conf.pp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
# and the value is an array of config lines. Default: empty
# $includes:
# Array of absolute paths to named.conf include files. Default: empty
# $syslog:
# Log to syslog instead of `/var/log/named/named.log`. Default: false
#
# Sample Usage :
# bind::server::conf { '/etc/named.conf':
Expand Down Expand Up @@ -118,6 +120,7 @@
$keys = {},
$includes = [],
$views = {},
$syslog = false,
) {

# Everything is inside a single template
Expand Down
5 changes: 5 additions & 0 deletions templates/named.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,16 @@ options {

logging {
channel main_log {
<% if @syslog -%>
syslog daemon;
severity info;
<% else -%>
file "/var/log/named/named.log" versions 3 size 5m;
severity info;
print-time yes;
print-severity yes;
print-category yes;
<% end -%>
};
category default{
main_log;
Expand Down