14 lines
263 B
Puppet
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,
|
|
}
|
|
}
|
|
}
|