puppet-prod/site/profiles/manifests/haproxy/mappings.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

14 lines
263 B
Puppet

# profiles::haproxy::mappings
class profiles::haproxy::mappings {
# for each mapping:
$mappings = lookup('profiles::haproxy::mappings')
$mappings.each |$mapping, $data| {
# create mapping
haproxy::mapfile { $mapping:
* => $data,
}
}
}