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

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

    apache::vhost::base { "pkgsubmit.$::domain":
        aliases  => {
            '/uploads' => "$sched_home_dir/uploads",
            '/autobuild/cauldron/x86_64/core/log/status.core.log' => "$location/autobuild/broken.php"
        },
        location => $location,
        content  => template('buildsystem/vhost_pkgsubmit.conf'),
    }

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