aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/iurt.pp
blob: bdee8ac5b18a527a599b792b361c7bc61dfc547d (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
class buildsystem::iurt {
    include sudo
    include buildsystem::iurt::user
    include buildsystem::iurt::packages
    include buildsystem::var::iurt

    # remove old build directory
    tidy { "${buildsystem::var::iurt::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 { ['2','1','cauldron','mandriva2010.1','infra_1', 'infra_2']: }

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