diff --git a/manifests/params.pp b/manifests/params.pp index dfdf0f7..dcea9dd 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -99,8 +99,8 @@ $hy_user_home = '/var/lib/haproxy', $hy_user_shell = '/sbin/nologin', # logging -$hy_log_local0 = true, -$hy_log_local1 = true, +$hy_log_local0 = '/dev/log local0', +$hy_log_local1 = '/dev/log local1 notice', $hy_log_target = '127.0.0.1', $hy_log_facility = 'local2', $hy_log_default = 'global', diff --git a/templates/haproxy_head.erb b/templates/haproxy_head.erb index 6441651..b506808 100644 --- a/templates/haproxy_head.erb +++ b/templates/haproxy_head.erb @@ -3,8 +3,8 @@ ############################################################################### global - log /dev/log local0 - log /dev/log local1 notice + log <%= @hy_log_local0 %> + log <%= @hy_log_local1 %> <% if @hy_hard_stop == true -%> hard-stop-after <%= @hy_hard_stop_value %> <% end -%>