Fix HAProxy config and install version when ssl is disabled
Horizon should listen on port 80 and does not need a scheme redirect when ssl is disabled. We should always configure the HAProxy PPA and install the latest version regardless of whether or not SSL is enabled or disabled. Change-Id: I7a7d574251fe1139da0826d64958529fdf2f5b4c Closes-Bug: #1596548
This commit is contained in:
parent
141a7ad400
commit
3b51d076e3
@ -16,7 +16,6 @@
|
||||
# NOTE(cloudnull) This can be removed when we drop 14.04 support
|
||||
- include: haproxy_add_ppa_repo.yml
|
||||
when:
|
||||
- haproxy_ssl | bool
|
||||
- ansible_distribution_version | version_compare('16.04', '<')
|
||||
|
||||
#TODO(evrardjp): Replace the next 2 tasks by a standard apt with cache
|
||||
|
@ -25,7 +25,7 @@
|
||||
{% endif -%}
|
||||
|
||||
{% for vip_bind in vip_binds %}
|
||||
{% if item.service.haproxy_redirect_http_port is defined %}
|
||||
{% if item.service.haproxy_redirect_http_port is defined and item.service.haproxy_ssl %}
|
||||
{% if (loop.index == 1 or item.service.haproxy_ssl_all_vips | default(false) | bool) %}
|
||||
|
||||
frontend {{ item.service.haproxy_service_name }}-redirect-front-{{ loop.index }}
|
||||
|
@ -161,7 +161,7 @@ haproxy_service_configs:
|
||||
haproxy_backend_nodes: "{{ groups['horizon_all'] | default([]) }}"
|
||||
haproxy_ssl: "{{ haproxy_ssl }}"
|
||||
haproxy_ssl_all_vips: true
|
||||
haproxy_port: 443
|
||||
haproxy_port: "{{ haproxy_ssl | ternary(443,80) }}"
|
||||
haproxy_backend_port: 80
|
||||
haproxy_redirect_http_port: 80
|
||||
haproxy_balance_type: http
|
||||
|
Loading…
Reference in New Issue
Block a user