aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/rpmlint.pp
blob: 36ddd26e26cb9508b886dd5f8ab255ede05cf04e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class buildsystem::rpmlint {
    include buildsystem::scheduler::var
    $sched_login = $buildsystem::scheduler::var::login

    package { 'rpmlint': }

    file { '/etc/rpmlint/config':
        require => Package['rpmlint'],
        content => template('buildsystem/rpmlint.conf')
    }

    # directory that hold configuration auto extracted after upload
    # of the rpmlint policy
    # should belong to the scheduler user, as it need to write to it
    file { '/etc/rpmlint/extracted.d/':
        ensure  => directory,
        require => Package['rpmlint'],
        owner   => $sched_login,
    }
}