4bc410c6ca
Use case: exposing single external https frontend and load balancing services using FQDNs. Support different ports for internal and external endpoints. Introduced kolla_url filter to normalize urls like: - https://magnum.external:443/v1 - http://magnum.external:80/v1 Change-Id: I9fb03fe1cebce5c7198d523e015280c69f139cd0 Co-Authored-By: Jakub Darmach <jakub@stackhpc.com>
45 lines
1.5 KiB
Django/Jinja
45 lines
1.5 KiB
Django/Jinja
{
|
|
"command": "/etc/haproxy/haproxy_run.sh",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/haproxy_run.sh",
|
|
"dest": "/etc/haproxy/haproxy_run.sh",
|
|
"owner": "root",
|
|
"perm": "0700"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/haproxy.cfg",
|
|
"dest": "/etc/haproxy/haproxy.cfg",
|
|
"owner": "root",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/services.d/",
|
|
"dest": "/etc/haproxy/services.d",
|
|
"owner": "root",
|
|
"perm": "0700"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/external-frontend-map",
|
|
"dest": "/etc/haproxy/external-frontend-map",
|
|
"owner": "root",
|
|
"perm": "0600",
|
|
"optional": {{ (not haproxy_single_external_frontend | bool) | string | lower }}
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/haproxy.pem",
|
|
"dest": "/etc/haproxy/haproxy.pem",
|
|
"owner": "root",
|
|
"perm": "0600",
|
|
"optional": {{ (not kolla_enable_tls_external | bool) | string | lower }}
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/haproxy-internal.pem",
|
|
"dest": "/etc/haproxy/haproxy-internal.pem",
|
|
"owner": "root",
|
|
"perm": "0600",
|
|
"optional": {{ (not kolla_enable_tls_internal | bool) | string | lower }}
|
|
}
|
|
]
|
|
}
|