Ansible: Add CIMC/IPMI/COBBLER
[csit.git] / resources / tools / testbed-setup / ansible / roles / cobbler / files / etc / httpd / conf.d / cobbler_web.conf
diff --git a/resources/tools/testbed-setup/ansible/roles/cobbler/files/etc/httpd/conf.d/cobbler_web.conf b/resources/tools/testbed-setup/ansible/roles/cobbler/files/etc/httpd/conf.d/cobbler_web.conf
new file mode 100644 (file)
index 0000000..8b0f986
--- /dev/null
@@ -0,0 +1,33 @@
+# This configuration file enables the cobbler web
+# interface (django version)
+
+<Directory "/usr/share/cobbler/web/">
+        SetEnv VIRTUALENV
+        Options Indexes MultiViews
+        AllowOverride None
+        Order allow,deny
+        Allow from all
+</Directory>
+
+<Directory "/var/www/cobbler_webui_content/">
+        Options +Indexes +FollowSymLinks
+        AllowOverride None
+        Order allow,deny
+        Allow from all
+</Directory>
+
+# Use separate process group for wsgi
+WSGISocketPrefix /var/run/wsgi
+WSGIScriptAlias /cobbler_web /usr/share/cobbler/web/cobbler.wsgi
+WSGIDaemonProcess cobbler_web display-name=%{GROUP}
+WSGIProcessGroup cobbler_web
+WSGIPassAuthorization On
+
+<IfVersion >= 2.4>
+    <Location /cobbler_web>
+        Require all granted
+    </Location>
+    <Location /cobbler_webui_content>
+        Require all granted
+    </Location>
+</IfVersion>