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

    file { [ $buildsystem::var::webstatus::location, "${buildsystem::var::webstatus::location}/data" ]:
        ensure => directory,
    }

    apache::vhost::base { $buildsystem::var::webstatus::hostname:
        aliases  => {
            '/uploads' => "${buildsystem::var::scheduler::homedir}/uploads",
            '/autobuild/cauldron/x86_64/core/log/status.core.log' => "$location/autobuild/broken.php"
        },
        location => $buildsystem::var::webstatus::location,
        content  => template('buildsystem/vhost_webstatus.conf'),
    }

    subversion::snapshot { $buildsystem::var::webstatus::location:
        source => $buildsystem::var::webstatus::svn_url,
    }
}