feat: add haproxy profile
- add haproxy server class - add haproxy profile to role - add hiera data for region specific haproxy - add selinux configuration - add certlist management - add default http and https frontends - add default stats listener
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# 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}",
|
||||
],
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user