1a0f3c0a6d
UP link: https://github.com/puppetlabs/puppetlabs-haproxy UP commit sha: 4c94112afbb143f54caae0967e29261b41179017 Implements: blueprint ssl-endpoints Change-Id: Icb96703ad50b111af463cb6c4094091a251ca680
18 lines
511 B
Puppet
18 lines
511 B
Puppet
define haproxy::peers (
|
|
$collect_exported = true,
|
|
) {
|
|
|
|
# Template uses: $name, $ipaddress, $ports, $options
|
|
concat::fragment { "${name}_peers_block":
|
|
order => "30-peers-00-${name}",
|
|
target => '/etc/haproxy/haproxy.cfg',
|
|
content => template('haproxy/haproxy_peers_block.erb'),
|
|
}
|
|
|
|
if $collect_exported {
|
|
haproxy::peer::collect_exported { $name: }
|
|
}
|
|
# else: the resources have been created and they introduced their
|
|
# concat fragments. We don't have to do anything about them.
|
|
}
|