diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-05-21 14:44:07 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-05-22 23:22:10 +0000 |
commit | 76b67d7a8e96e0d50bf5588b5b96f3afb013f9e4 (patch) | |
tree | 0575e3e221a5c8ee315ac0c187e3f60a039b90c4 /openstack/usr/share/openstack/horizon.yml | |
parent | 2cac133029c338fd0f728c67fee1190706016590 (diff) | |
download | definitions-76b67d7a8e96e0d50bf5588b5b96f3afb013f9e4.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 'openstack/usr/share/openstack/horizon.yml')
-rw-r--r-- | openstack/usr/share/openstack/horizon.yml | 7 |
1 files changed, 3 insertions, 4 deletions
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: |