Skip to content

Commit

Permalink
Various fixes to get webui started
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan committed May 11, 2020
1 parent ff2496d commit c0fa228
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions cobbler/tree/etc/apache2/conf-available/cobbler_web.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This configuration file enables the cobbler web
# interface (django version)

<Directory "/usr/local/share/cobbler/web/">
SetEnv VIRTUALENV
Options Indexes MultiViews
AllowOverride None
Require all granted
</Directory>

<Directory "/srv/www/cobbler_webui_content/">
Options +Indexes +FollowSymLinks
AllowOverride None
Require all granted
</Directory>

# Use separate process group for wsgi
WSGISocketPrefix /var/run/wsgi
WSGIScriptAlias /cobbler_web /usr/local/share/cobbler/web/cobbler.wsgi
WSGIDaemonProcess cobbler_web display-name=%{GROUP}
WSGIProcessGroup cobbler_web
WSGIPassAuthorization On

<Location /cobbler_web>
Require all granted
</Location>
1 change: 1 addition & 0 deletions cobbler/tree/usr/local/bin/update-config.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
echo "Updating configuration files from environment variables"
j2 --undefined /etc/cobbler/settings.j2 -o /etc/cobbler/settings
j2 --undefined /etc/cobbler/dhcp.template.j2 -o /etc/cobbler/dhcp.template
j2 --undefined /etc/apache2/conf-available/cobbler_web.conf.j2 -o /etc/apache2/conf-available/cobbler_web.conf
j2 --undefined /var/lib/cobbler/snippets/preseed_bionic_post_deploy.j2 -o /var/lib/cobbler/snippets/preseed_bionic_post_deploy
j2 --undefined /var/lib/cobbler/snippets/preseed_xenial_post_deploy.j2 -o /var/lib/cobbler/snippets/preseed_xenial_post_deploy

0 comments on commit c0fa228

Please sign in to comment.