puppet-prod/site/profiles/manifests/haproxy/frontends.pp
Ben Vincent 82f2d75888 feat: add frontends, backends, listeners
- add a way to define frontends, backends and listeners through hieradata
2024-04-06 20:23:37 +11:00

15 lines
293 B
Puppet

# 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,
}
}
}