aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/rpmlint.pp
blob: ea9a55b8f718a6544a2bea8d6fcf9a667ca5a6cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class buildsystem::rpmlint {
    $sched_login = $buildsystem::base::sched_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,
    }
}