diff options
author | Tomas Doran <tdoran@yelp.com> | 2015-01-23 16:55:12 +0000 |
---|---|---|
committer | Tomas Doran <tdoran@yelp.com> | 2015-01-23 16:56:27 +0000 |
commit | b16aec203d3b25fd9f8c22de510ff146ec2b4c0f (patch) | |
tree | 4b2674be0a22257fab564695baf069f69c2e13eb /manifests | |
parent | e9e054321e08c271e0778af6d15fa146c69c62fd (diff) | |
download | puppet-dhcp-b16aec203d3b25fd9f8c22de510ff146ec2b4c0f.tar.gz puppet-dhcp-b16aec203d3b25fd9f8c22de510ff146ec2b4c0f.tar.bz2 |
Allow the log facility to be configured
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 3 | ||||
-rw-r--r-- | manifests/server.pp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 9af496f..fe9219b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -8,6 +8,7 @@ # (default: true) # ['server_ddns_update'] - Set ddns_update on dhcp::server # ['server_authoritative'] - Set authoritative on dhcp::server +# ['server_log_facility'] - Set log level on dhcp::server # ['server_opts'] - Set opts for dhcp::server # # Actions: @@ -24,12 +25,14 @@ class dhcp ( $server = true, $server_ddns_update = undef, $server_authoritative = undef, + $server_log_facility = undef, $server_opts = undef, ) { if $server { class { '::dhcp::server': ddns_update => $server_ddns_update, authoritative => $server_authoritative, + log_facility => $server_log_facility, opts => $server_opts, } } diff --git a/manifests/server.pp b/manifests/server.pp index a44cfe1..d4bbc30 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -6,6 +6,8 @@ # ['ddns_update'] : ddns-update-style option (defaults to 'none') # ['authoritative'] : a boolean setting whether the DHCP server is # authoritative (defaults to false) +# ['log_facility'] : string containing syslog log levels +# (defaults to local7) # ['opts'] : an array of DHCPD valid options # # Sample usage: @@ -36,6 +38,7 @@ class dhcp::server ( $ddns_update = 'none', $authoritative = false, + $log_facility = 'local7', $opts = [], ) { class { '::dhcp::server::packages': } -> |