From 252ac6af5cca8083bea7220257bc436ea8c57ca4 Mon Sep 17 00:00:00 2001 From: Stuart Grace Date: Wed, 27 Jun 2018 11:11:20 +0100 Subject: [PATCH] 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 --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index b57fd3ff..062d288f 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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