Implement support for logging configuration

Adds `bind::logging::channel` and `bind::logging::category` defines in order to
support logging configuration.
This commit is contained in:
Nate Riffe
2017-02-25 12:42:54 -06:00
parent 987470f22a
commit 8504b27498
8 changed files with 95 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
channel <%= @name %> {
<%- case @destination -%>
<%- when "file" -%>
file "<%= @file_path %>/<%= @file_name %>";
<%- when "syslog" -%>
syslog <%= @syslog_facility %>;
<%- when "stderr" -%>
stderr;
<%- when "null" -%>
null;
<%- end -%>
<%- if @severity and @severity != '' -%>
severity <%= @severity %>;
<%- end -%>
print-category <%= @print_category ? 'yes' : 'no' %>;
print-severity <%= @print_severity ? 'yes' : 'no' %>;
print-time <%= @print_time ? 'yes' : 'no' %>;
};
+1
View File
@@ -1,4 +1,5 @@
# This file is managed by puppet - changes will be lost
include "<%= @confdir %>/logging.conf";
include "<%= @confdir %>/acls.conf";
include "<%= @confdir %>/keys.conf";
include "<%= @confdir %>/views.conf";