aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/buildsystem/manifests/init.pp9
-rw-r--r--modules/buildsystem/templates/rpmlint.conf7
2 files changed, 16 insertions, 0 deletions
diff --git a/modules/buildsystem/manifests/init.pp b/modules/buildsystem/manifests/init.pp
index 185cb547..4d3afad0 100644
--- a/modules/buildsystem/manifests/init.pp
+++ b/modules/buildsystem/manifests/init.pp
@@ -293,6 +293,15 @@ class buildsystem {
content => template("buildsystem/sudoers.youri")
}
+ package { "rpmlint": }
+
+ file { "/etc/rpmlint/config":
+ ensure => present,
+ mode => 644,
+ require => Package['rpmlint'],
+ content => template("buildsystem/rpmlint.conf")
+ }
+
# directory that hold configuration auto extracted after upload
# of the rpmlint policy
file { "/etc/rpmlint/extracted.d/":
diff --git a/modules/buildsystem/templates/rpmlint.conf b/modules/buildsystem/templates/rpmlint.conf
new file mode 100644
index 00000000..b81f169b
--- /dev/null
+++ b/modules/buildsystem/templates/rpmlint.conf
@@ -0,0 +1,7 @@
+from Config import *
+execfile('/etc/rpmlint/extracted.d/distribution.exceptions.conf')
+
+for i in open('/etc/rpmlint/extracted.d/distribution.error.list').readlines():
+ setBadness(i, 10)
+
+