summaryrefslogtreecommitdiff
path: root/old/install-files/openstack/usr/share/openstack/horizon.yml
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-07-07 10:01:07 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-07-07 10:01:07 +0000
commitf6046f9b54c1f14d12a67fa66ca0c881b49e8ceb (patch)
tree7c4d5b1aa87b991fecb0b2c585514069947c3f0a /old/install-files/openstack/usr/share/openstack/horizon.yml
parentdeba555368fd21316025c5ee0eaaf517b938775e (diff)
downloaddefinitions-f6046f9b54c1f14d12a67fa66ca0c881b49e8ceb.tar.gz
Move old Baserock format definitions into old/ directory
Diffstat (limited to 'old/install-files/openstack/usr/share/openstack/horizon.yml')
-rw-r--r--old/install-files/openstack/usr/share/openstack/horizon.yml46
1 files changed, 46 insertions, 0 deletions
diff --git a/old/install-files/openstack/usr/share/openstack/horizon.yml b/old/install-files/openstack/usr/share/openstack/horizon.yml
new file mode 100644
index 00000000..1fec4ab0
--- /dev/null
+++ b/old/install-files/openstack/usr/share/openstack/horizon.yml
@@ -0,0 +1,46 @@
+---
+- hosts: localhost
+ tasks:
+
+# Setup apache, this may end up in apache.yml
+ - name: Create the apache user.
+ user:
+ name: apache
+ comment: Apache Server
+ shell: /sbin/nologin
+ home: /var/www
+
+ - file:
+ path: /usr/sbin/suexec
+ group: apache
+ mode: 4750
+
+# Setup horizon
+ - name: Create the horizon user.
+ user:
+ name: horizon
+ comment: Openstack Horizon User
+ shell: /sbin/nologin
+ home: /var/lib/horizon
+
+ - name: Fix permissions in /var/lib/horizon
+ file:
+ path: /var/lib/horizon
+ state: directory
+ owner: horizon
+ group: horizon
+ recurse: yes
+
+ - name: Link horizon apache configuration
+ file:
+ src: /etc/horizon/apache-horizon.conf
+ dest: /etc/httpd/conf.d/apache-horizon.conf
+ state: link
+
+ - name: Enable and start apache services needed by horizon
+ service:
+ name: "{{ item }}"
+ enabled: yes
+ state: started
+ with_items:
+ - apache-httpd.service