From 1533821265ce8cbcb43cd77c36405ccf856fcf58 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Tue, 9 Jun 2026 10:28:43 +0200 Subject: [PATCH] examples: disable default stats listener The examples setup a default stats listener. This will add the `/stats` page to all frontends and expose sensitive information like the amount of backends, haproxy version, internal IP addresses and FQDNs. --- examples/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/init.pp b/examples/init.pp index fbda45b8..37038ad6 100644 --- a/examples/init.pp +++ b/examples/init.pp @@ -13,7 +13,6 @@ }, defaults_options => { 'log' => 'global', - 'stats' => 'enable', 'option' => 'redispatch', 'retries' => '3', 'timeout' => [ @@ -61,6 +60,7 @@ options => { 'mode' => 'http', 'stats' => [ + 'enable', 'uri /', 'auth puppet:puppet', ],