From 9e353bebff658dd37ffc12b3ee59d990e0d6ebab Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Fri, 14 Feb 2025 13:18:22 +0100 Subject: [PATCH] change logging defaults --- manifests/params.pp | 4 ++-- templates/haproxy_head.erb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -%>