From d86dae12517ab6f9b3f795424dfafbd14194483d Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Sat, 22 Feb 2025 13:48:51 +0100 Subject: [PATCH] add option for backend user list --- manifests/params.pp | 3 ++- templates/haproxy_head.erb | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index bdb213f..9157325 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -107,7 +107,8 @@ $hy_log_default = 'global', $hy_use_tcplog = true, $hy_use_httplog = false, $hy_use_dontlognull = true, - +$hy_manage_be_users = false +$hy_be_userlist = undef, ) { diff --git a/templates/haproxy_head.erb b/templates/haproxy_head.erb index b506808..d5f8073 100644 --- a/templates/haproxy_head.erb +++ b/templates/haproxy_head.erb @@ -64,5 +64,10 @@ listen stats stats refresh 30s stats admin if TRUE # Allow admin actions if logged in +<% if $hy_manage_be_users == true -%> + <%= @hy_be_userlist %> +<% end -%> + + ### custom rules below ###