From: Silvio Rhatto Date: Thu, 24 Mar 2016 14:58:46 +0000 (-0300) Subject: Handle the whole log_facility block together X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=4a3fe5c34f986fd93819a9d3cfc910c88e432033;p=puppet-dhcp.git Handle the whole log_facility block together --- diff --git a/templates/dhcpd.conf.debian.erb b/templates/dhcpd.conf.debian.erb index 64318c8..f193fab 100644 --- a/templates/dhcpd.conf.debian.erb +++ b/templates/dhcpd.conf.debian.erb @@ -14,7 +14,9 @@ ddns-update-style <%= @ddns_update %>; <%= @opts.join(";\n") %>; <% end -%> +<% if @log_facility != '' -%> # Use this to send dhcp log messages to a different log file (you also # have to hack syslog.conf to complete the redirection). -<% unless @log_facility != '' -%>log-facility <%= @log_facility %>;<%- end -%> +log-facility <%= @log_facility %>; +<%- end -%>