1a0f3c0a6d
UP link: https://github.com/puppetlabs/puppetlabs-haproxy UP commit sha: 4c94112afbb143f54caae0967e29261b41179017 Implements: blueprint ssl-endpoints Change-Id: Icb96703ad50b111af463cb6c4094091a251ca680
17 lines
436 B
Puppet
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'),
|
|
}
|
|
}
|