aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/mainnode.pp
blob: 40b94f04de8eb6d2d31c5347fbcda5f3ec9fc7ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
class buildsystem::mainnode {
    include buildsystem::base
    include buildsystem::iurt::user
    include buildsystem::scheduler
    include buildsystem::gatherer
    include buildsystem::mgarepo
    include buildsystem::signbot
    include buildsystem::youri_submit

    $sched_login    = $buildsystem::scheduler::var::login
    $sched_home_dir = $buildsystem::scheduler::var::homedir

    $build_login = $buildsystem::iurt::user::login

    ssh::auth::client { $sched_login: }

    ssh::auth::server { [$sched_login, $build_login]: }

    $mirror_root = '/distrib/mirror'
    apache::vhost_other_app { "repository.$::domain":
        vhost_file => 'buildsystem/vhost_repository.conf',
    }

    buildsystem::media_cfg { ['i586','x86_64']: }

    cron { 'dispatch jobs':
        user    => $sched_login,
        command => 'ulri; emi',
        minute  => '*',
    }
}