From e43f9475183916cad6fb21fcf124a822ffe836f7 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 20 Jul 2011 12:01:48 +0000 Subject: deploy rpmlint configuration to use the auto extracted files previously setup --- modules/buildsystem/manifests/init.pp | 9 +++++++++ modules/buildsystem/templates/rpmlint.conf | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 modules/buildsystem/templates/rpmlint.conf 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) + + -- cgit v1.2.1