fuel-library/deployment/puppet/haproxy/manifests/peer.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

17 lines
436 B
Puppet

define haproxy::peer (
$peers_name,
$port,
$ensure = 'present',
$server_names = $::hostname,
$ipaddresses = $::ipaddress,
) {
# Templats uses $ipaddresses, $server_name, $ports, $option
concat::fragment { "peers-${peers_name}-${name}":
ensure => $ensure,
order => "30-peers-01-${peers_name}-${name}",
target => '/etc/haproxy/haproxy.cfg',
content => template('haproxy/haproxy_peer.erb'),
}
}