summaryrefslogtreecommitdiff
path: root/install-files/openstack/usr/share
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-05-21 14:44:07 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-06-04 13:50:26 +0000
commitfe422c395e0819f11a0341ebba3250228e9f99b5 (patch)
tree4a7a61e66bea6c2b4c7247f06f81c6b4e021dad8 /install-files/openstack/usr/share
parent8672cc4fb9221d1bf7f849380d9c04368fb43c70 (diff)
downloaddefinitions-fe422c395e0819f11a0341ebba3250228e9f99b5.tar.gz
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://<IP-of-OpenStack>' (the 'horizon/' suffix is removed) - Grant permissions to access to /var/lib/horizon/static Also changes 'tempest.conf' to change Horizon urls.
Diffstat (limited to 'install-files/openstack/usr/share')
-rw-r--r--install-files/openstack/usr/share/openstack/horizon.yml7
1 files changed, 3 insertions, 4 deletions
diff --git a/install-files/openstack/usr/share/openstack/horizon.yml b/install-files/openstack/usr/share/openstack/horizon.yml
index 14cea5c5..1fec4ab0 100644
--- a/install-files/openstack/usr/share/openstack/horizon.yml
+++ b/install-files/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: