summaryrefslogtreecommitdiff
path: root/openstack/etc/systemd/system/openstack-horizon-setup.service
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-01-20 19:19:54 +0000
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-01-22 12:46:31 +0000
commitcef0559c7367fc71619e0d68b4e4613a1dd03ea5 (patch)
tree6d5cfa77fadad9bc97a05b4831441bc7dd65bb65 /openstack/etc/systemd/system/openstack-horizon-setup.service
parenteab5bf3a9e0d046f414c802123719c06f478458e (diff)
downloaddefinitions-cef0559c7367fc71619e0d68b4e4613a1dd03ea5.tar.gz
WIP: Setup Horizon in apache and add the horizon-setup service
apache-horizon.conf: apache needs to load this file to know where django and horizon have their configuration files and where to put the static files created by horizon. local_settings.py: it is the dashboard django configuration. NOTE-1: django.wsgi has been patched because a bug, see openstack-horizon-setup for more information. WARNING: All the configuration and paths are hardcoded in the configuration files, this should be done more wisely in future patches.
Diffstat (limited to 'openstack/etc/systemd/system/openstack-horizon-setup.service')
-rw-r--r--openstack/etc/systemd/system/openstack-horizon-setup.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/openstack/etc/systemd/system/openstack-horizon-setup.service b/openstack/etc/systemd/system/openstack-horizon-setup.service
new file mode 100644
index 00000000..be200a6f
--- /dev/null
+++ b/openstack/etc/systemd/system/openstack-horizon-setup.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Run openstack-horizon-setup (once)
+Requires=local-fs.target
+After=local-fs.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/share/openstack/openstack-horizon-setup
+Restart=no
+
+[Install]
+WantedBy=multi-user.target