# the default status listener class profiles::haproxy::ls_stats ( Stdlib::IP::Address $bind_addr = $facts['networking']['ip'], Stdlib::Port $bind_port = 9090, Array $bind_opts = [], String $user = 'admin', String $pass = 'admin', ) { haproxy::listen { 'stats': bind => { "${bind_addr}:${bind_port}" => $bind_opts }, options => { 'mode' => 'http', 'stats' => [ 'uri /', "auth ${user}:${pass}", ], }, } }