summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/public-api-proxy.yaml
blob: 726945fe3ac45bfc00f0ea6251476c04b4ee050b (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"