summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/public-api-proxy.yaml
blob: b746850ca5b97846023551b9a1b04c8534ad8fd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
    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 }}
            servers: [[{{ service.name }},{{ service.ip }},{{ service.port }}]]
{% endfor %}
      to:
        - "nodes=0"