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,18 @@
|
||||
# profiles::haproxy::certlist
|
||||
class profiles::haproxy::certlist (
|
||||
Boolean $enabled = true,
|
||||
Stdlib::Absolutepath $path = '/etc/haproxy/certificate.list',
|
||||
Array[Stdlib::Absolutepath] $certificates = []
|
||||
) {
|
||||
|
||||
if $enabled {
|
||||
file { $path:
|
||||
ensure => 'file',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0600',
|
||||
content => template('profiles/haproxy/certificate.list.erb')
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user