fuel-library/deployment/puppet/osnailyfacter/modular/cluster-haproxy/cluster-haproxy.pp
Vladimir Kuklin de59f299a9 Make haproxy stats listen on lo and mgmt VIP
This commit makes haproxy stats service
listen only on loopback and management VIP

Change-Id: Ifc6d6f3a3031bebeff8d96cf0ed0ae4923ef2b67
Closes-bug: #1465271
2015-06-16 14:47:47 +03:00

13 lines
415 B
Puppet

notice('MODULAR: cluster-haproxy.pp')
$network_scheme = hiera('network_scheme', {})
class { 'cluster::haproxy':
haproxy_maxconn => '16000',
haproxy_bufsize => '32768',
primary_controller => hiera('primary_controller'),
debug => hiera('debug', false),
other_networks => direct_networks($network_scheme['endpoints']),
stats_ipaddresses => [hiera('management_vip'),'127.0.0.1']
}