Change default horizon_server_name to ansible_fqdn

horizon_server_name setting in apache config file must be a FQDN
otherwise when debug mode is enabled, HTTP requests without a
host: header (such as haproxy health checks) fail with a message
about invaid domain name.

Change-Id: I8672593019e4cc5cf6144c40359ecb9d64bc9224
Closes-Bug: #1778085
This commit is contained in:
Stuart Grace 2018-06-27 11:11:20 +01:00
parent a7a5462a21
commit 252ac6af5c
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ horizon_lib_wsgi_file: "{{ horizon_lib_dir }}/openstack_dashboard/wsgi/django.ws
horizon_endpoint_type: internalURL
horizon_server_name: "{{ ansible_hostname | default('horizon') }}"
horizon_server_name: "{{ ansible_fqdn | default('horizon') }}"
horizon_apache_servertokens: "Prod"
horizon_apache_serversignature: "Off"
horizon_log_level: info