diff options
Diffstat (limited to 'modules/buildsystem/manifests/rpmlint.pp')
-rw-r--r-- | modules/buildsystem/manifests/rpmlint.pp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/buildsystem/manifests/rpmlint.pp b/modules/buildsystem/manifests/rpmlint.pp new file mode 100644 index 00000000..ea9a55b8 --- /dev/null +++ b/modules/buildsystem/manifests/rpmlint.pp @@ -0,0 +1,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, + } +} |