aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/iurt/init.pp
blob: 9f5780bd5d08af901a4b4ffecaa1093c73b09436 (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::iurt {
    include sudo
    include buildsystem::iurt::user
    include buildsystem::iurt::package
    $login = $buildsystem::iurt::user::login
    $homedir = $buildsystem::iurt::user::homedir

    ssh::auth::client { $login: }

    ssh::auth::server { $buildsystem::base::sched_login:
                        user => $login
    }

    # remove old build directory
    tidy { "$homedir/iurt":
        age     => '8w',
        recurse => true,
        matches => ['[0-9][0-9].*\..*\..*\.[0-9]*','log','*.rpm','*.log','*.mga[0-9]+'],
        rmdirs  => true,
    }

    file { '/etc/iurt/build':
        ensure => directory,
    }

   buildsystem::iurt::config { ['1','cauldron','mandriva2010.1','infra_1']: }

    sudo::sudoers_config { 'iurt':
        content => template('buildsystem/iurt/sudoers.iurt')
    }
}