blob: e3407e76e8e08b55ba5b767999bbed9026dd9f20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
haproxy:
charm: "local:{{ opnfv.distro }}/haproxy"
num_units: 1
options:
services: |-
{% for service in public_api_services.values() %}
- service_name: {{ service.name }}
service_host: {{ public_api_ip }}
service_port: {{ service.port }}
service_options: [mode http, balance leastconn],
servers: [[{{ service.name }}, {{ service.ip }}, {{ service.port }}, 'maxconn 100 cookie S0 check']]
{% endfor %}
to:
- "nodes=0"
|