diff options
Diffstat (limited to 'modules/buildsystem')
-rw-r--r-- | modules/buildsystem/manifests/init.pp | 4 | ||||
-rw-r--r-- | modules/buildsystem/templates/vhost_pkgsubmit.conf | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/modules/buildsystem/manifests/init.pp b/modules/buildsystem/manifests/init.pp index eb85b6e8..9a271559 100644 --- a/modules/buildsystem/manifests/init.pp +++ b/modules/buildsystem/manifests/init.pp @@ -31,6 +31,10 @@ class buildsystem { vhost_file => "buildsystem/vhost_repository.conf", } + apache::vhost_other_app { "pkgsubmit.$domain": + vhost_file => "buildsystem/vhost_pkgsubmit.conf", + } + include scheduler include gatherer } diff --git a/modules/buildsystem/templates/vhost_pkgsubmit.conf b/modules/buildsystem/templates/vhost_pkgsubmit.conf new file mode 100644 index 00000000..e37f6f8d --- /dev/null +++ b/modules/buildsystem/templates/vhost_pkgsubmit.conf @@ -0,0 +1,13 @@ +<% +pkgsubmit_root = "/home/schedbot/uploads" +%> + +<VirtualHost *:80> + ServerName pkgsubmit.<%= domain %> + DocumentRoot <%= pkgsubmit_root %> + Alias /uploads /home/schedbot/uploads + <Location /> + Allow from all + Options Indexes + </Location> +</VirtualHost> |