feat: add cnames to haproxy

- manage A records for haproxy
- manage cnames for services using haproxy
This commit is contained in:
2024-04-06 16:08:05 +11:00
parent e97d061f46
commit c9a1d35af9
3 changed files with 34 additions and 0 deletions
@@ -2,6 +2,7 @@
class profiles::haproxy::server (
Hash $globals = {},
Hash $defaults = {},
Array $cnames = [],
){
# default global/defaults arrays
@@ -50,6 +51,7 @@ class profiles::haproxy::server (
include profiles::haproxy::ls_stats # default status listener
include profiles::haproxy::fe_http # default http frontend
include profiles::haproxy::fe_https # default https frontend
include profiles::haproxy::dns # manage dns for haproxy
# for each backend:
$backends = lookup('profiles::haproxy::backends')