tripleo-image-elements/elements/haproxy
Jan Provaznik 7d519c1208 Fix exit status of haproxy install script
Don't return non-zero exit status if /etc/default/haproxy file doesn't exist,
image build fails then.

Change-Id: I64153a9f7869d1d7f7a4ce8f848884ba9fb83a37
2014-01-28 21:39:54 +01:00
..
install.d Fix exit status of haproxy install script 2014-01-28 21:39:54 +01:00
os-config-applier/etc/haproxy Add haproxy element 2014-01-17 08:51:04 +01:00
os-refresh-config Add haproxy element 2014-01-17 08:51:04 +01:00
README.md Add haproxy element 2014-01-17 08:51:04 +01:00

Element to install haproxy. This element proxies services listed in haproxy.services and additionally enables ports in firewall.

Configuration

haproxy: nodes:

  • name: notcompute ip: 192.0.2.5
  • name: notcomputeSlave0 ip: 192.0.2.6 services:
  • name: dashboard_cluster proxy_port: 444 port: 443
  • name: glance_api_cluster proxy_port: 9293 port:9292

You can override set of nodes for a service by setting its own set of haproxy.nodes inside a service definition:

services:

  • name: dashboard_cluster proxy_port: 444 port: 443 haproxy: nodes:
    • name: foo0 ip: 10.0.0.1