feat: add frontends, backends, listeners

- add a way to define frontends, backends and listeners through hieradata
This commit is contained in:
2024-04-06 18:53:53 +11:00
parent cdbb689c91
commit 82f2d75888
6 changed files with 84 additions and 24 deletions
@@ -0,0 +1,14 @@
# profiles::haproxy::frontends
class profiles::haproxy::frontends {
# for each frontend:
$frontends = lookup('profiles::haproxy::frontends', Hash, 'deep', {})
$frontends.each |$frontend, $data| {
# create frontends
haproxy::frontend { $frontend:
* => $data,
}
}
}