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