From 46858371af516134d63aee8198c2220fe6f58bc9 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Thu, 21 May 2015 14:44:07 +0000 Subject: Horizon: Install the openstack_dashboard django project in /var/lib/horizon With this patch we avoid some problems: - Horizon trying to write in /usr/lib/python2.7/site-packages/static - We won't have to maintain a copy of local_settings.py - The workaround of creating a symlink for django.wsgi is not needed now. This patch also changes apache-horizon.conf to - Change the path of django.wsgi file - Load the horizon server with the url 'http://' (the 'horizon/' suffix is removed) - Grant permissions to access to /var/lib/horizon/static Also changes 'tempest.conf' to change Horizon urls. --- openstack/usr/share/openstack/horizon.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'openstack/usr/share/openstack/horizon.yml') diff --git a/openstack/usr/share/openstack/horizon.yml b/openstack/usr/share/openstack/horizon.yml index 14cea5c5..1fec4ab0 100644 --- a/openstack/usr/share/openstack/horizon.yml +++ b/openstack/usr/share/openstack/horizon.yml @@ -23,14 +23,13 @@ shell: /sbin/nologin home: /var/lib/horizon - - name: Create the /var folders for horizon + - name: Fix permissions in /var/lib/horizon file: - path: "{{ item }}" + path: /var/lib/horizon state: directory owner: horizon group: horizon - with_items: - - /var/lib/horizon + recurse: yes - name: Link horizon apache configuration file: -- cgit v1.2.1