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 %>