puppet-tripleo/manifests/haproxy
Michele Baldessari 87744ef329 Fix tripleo::haproxy::stats to be more correct and flexible
In this change we do three things:
1) We make the class parameter 'ip' also be a list so that multiple
   bind addresses are possible
2) We remove the hard coded 1993 and move it to a parameter
3) Instead of passing only the controller_virtual_ip as the only bind
   address on all controllers which makes no sense (see linked LP)
   we also bind to the IP specified in the hiera key
   'tripleo::haproxy::haproxy_stats_bind_address'.

Tested this change with the accompanying THT patch and correctly
got the haproxy stats on a custom network (internal_api and the
controller vip):

listen haproxy.stats
  bind fd00:fd00:fd00:2000::16:1993 transparent
  bind 192.168.24.15:1993 transparent
  mode http
  stats enable
  stats uri /
  stats auth admin:password

I did not remove the controller_virtual_ip binding as that might be
a breaking change for operators. We could think about deprecating it
and removing it eventually.

Related-Bug: #1830334
Change-Id: Iab5f11c3065ff34a3543621554e7f05161d069f2
(cherry picked from commit e76519d2c8)
(cherry picked from commit ef577909d6)
(cherry picked from commit 73fdcc0d62)
2019-06-04 04:27:25 +00:00
..
endpoint.pp Add mechanism for cookie-based sessions in endpoints. 2018-07-02 19:40:18 +00:00
horizon_endpoint.pp Fix horizon firewall rules in composable roles 2019-05-30 06:31:06 +00:00
service_endpoints.pp Add Basic Authentication support for HAProxy 2017-12-16 09:37:27 +01:00
stats.pp Fix tripleo::haproxy::stats to be more correct and flexible 2019-06-04 04:27:25 +00:00
userlist.pp Add Basic Authentication support for HAProxy 2017-12-16 09:37:27 +01:00