aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/pkgsubmit.pp
blob: f55007173036c8d676f82f30c18bc9fe4937ae09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class buildsystem::pkgsubmit {
    include buildsystem::scheduler::var
    $sched_home_dir = $buildsystem::scheduler::var::homedir

    $location = '/var/www/bs'
    file { [$location,"$location/data"]:
        ensure => directory,
    }

    apache::vhost_base { "pkgsubmit.$::domain":
        aliases  => { '/uploads' => "$sched_home_dir/uploads" },
        location => $location,
        content  => template('buildsystem/vhost_pkgsubmit.conf'),
    }

    subversion::snapshot { $location:
        source => "svn://svn.$::domain/soft/buildsystem/web/",
    }
}