summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/public-api-proxy.yaml
blob: 2e06ffff9e3edc8d04edd78549afcdd5e1186b25 (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 }}]]
{% endfor %}
      to:
        - "nodes=0"