From deec1c9be8ca212c3d8ec2781c636c5f6dd5a7d0 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Thu, 14 Apr 2016 10:01:57 -0500 Subject: [PATCH] Fix server/hostname for RFC 1034/1035 This change ensures that the ``horizon_server_name`` option is being set to the **ansible_hostname** fact if the facts are available otherwise it will default to "horizon". This ensures the Apache web server has an appropriate server name which is compliant to the RFC. Change-Id: Ibdeb8b981ca770ce4f56beeae05afd3379964859 Signed-off-by: Kevin Carter --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 9b69d5fa..ea28d539 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -73,7 +73,7 @@ horizon_lib_wsgi_file: "{{ horizon_lib_dir }}/openstack_dashboard/wsgi/django.ws horizon_endpoint_type: internalURL -horizon_server_name: "horizon" +horizon_server_name: "{{ ansible_hostname | default('horizon') }}" horizon_apache_servertokens: "Prod" horizon_apache_serversignature: "Off" horizon_log_level: info