From 57566d61d595318e0c7eb9572449c85588750fe9 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Wed, 12 Feb 2025 14:23:21 +0100 Subject: [PATCH] moved the stats bit in clause true or false --- manifests/params.pp | 2 ++ templates/haproxy_head.erb | 3 +++ 2 files changed, 5 insertions(+) diff --git a/manifests/params.pp b/manifests/params.pp index b0b99dd..35a4d67 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -86,6 +86,8 @@ $hy_timeout_client = '1m', $hy_timeout_server = '1m', $hy_timeout_http_keep_alive = '10s', $hy_timeout_check = '10s', +$hy_hard_stop = true, +$hy_hard_stop_value = '60s', # user $hy_user_name = 'haproxy', diff --git a/templates/haproxy_head.erb b/templates/haproxy_head.erb index 844dbd8..147d4b9 100644 --- a/templates/haproxy_head.erb +++ b/templates/haproxy_head.erb @@ -9,6 +9,9 @@ global <% if @hy_log_local1 == true -%> log /dev/log local1 notice <% end -%> +<% if @hy_hard_stop == true -%> + hard-stop-after <%= @hy_hard_stop_value %> +<% end -%> chroot <%= @hy_chroot %> pidfile <%= @hy_pid %> maxconn <%= @hy_maxconn %>