aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/rpmlint.pp
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-03-16 22:46:49 +0000
committerMichael Scherer <misc@mageia.org>2012-03-16 22:46:49 +0000
commit7221579bb55dd9a571db4212fc6d994bfa182867 (patch)
tree30a2539262bafe43601d56d131aaee6223fa32d3 /modules/buildsystem/manifests/rpmlint.pp
parent53a0d6357d0abfa86080fbc842608f0eaa205e60 (diff)
downloadpuppet-7221579bb55dd9a571db4212fc6d994bfa182867.tar
puppet-7221579bb55dd9a571db4212fc6d994bfa182867.tar.gz
puppet-7221579bb55dd9a571db4212fc6d994bfa182867.tar.bz2
puppet-7221579bb55dd9a571db4212fc6d994bfa182867.tar.xz
puppet-7221579bb55dd9a571db4212fc6d994bfa182867.zip
split rpmlint in a separate module for clarity
Diffstat (limited to 'modules/buildsystem/manifests/rpmlint.pp')
-rw-r--r--modules/buildsystem/manifests/rpmlint.pp19
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,
+ }
+}