fuel-library/deployment/puppet/haproxy/manifests/peers.pp
Stanislaw Bogatkin 1a0f3c0a6d Sync puppet haproxy module from upstream
UP link: https://github.com/puppetlabs/puppetlabs-haproxy
UP commit sha: 4c94112afbb143f54caae0967e29261b41179017
Implements: blueprint ssl-endpoints

Change-Id: Icb96703ad50b111af463cb6c4094091a251ca680
2015-06-18 10:12:07 -05:00

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.
}