aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2012-12-10 19:34:15 +0000
committerNicolas Vigier <boklm@mageia.org>2012-12-10 19:34:15 +0000
commit5598f40d95022d6b03ea9d2c2bd8df33e7f34c0c (patch)
treefecce2cca76ba42ca5e829312e82eb68a7a3cc84 /modules
parent46845a18168b56d277f5cddde109005116590ba0 (diff)
downloadpuppet-5598f40d95022d6b03ea9d2c2bd8df33e7f34c0c.tar
puppet-5598f40d95022d6b03ea9d2c2bd8df33e7f34c0c.tar.gz
puppet-5598f40d95022d6b03ea9d2c2bd8df33e7f34c0c.tar.bz2
puppet-5598f40d95022d6b03ea9d2c2bd8df33e7f34c0c.tar.xz
puppet-5598f40d95022d6b03ea9d2c2bd8df33e7f34c0c.zip
buildsystem::youri_submit: Remove hardcoded perl lib dir
Use unversionned perl lib dir.
Diffstat (limited to 'modules')
-rw-r--r--modules/buildsystem/manifests/youri_submit.pp11
1 files changed, 9 insertions, 2 deletions
diff --git a/modules/buildsystem/manifests/youri_submit.pp b/modules/buildsystem/manifests/youri_submit.pp
index e5e38fb8..dfbb3a34 100644
--- a/modules/buildsystem/manifests/youri_submit.pp
+++ b/modules/buildsystem/manifests/youri_submit.pp
@@ -49,8 +49,15 @@ class buildsystem::youri_submit {
matches => '*.rpm',
}
- # FIXME use /usr/local/ once it will be in @INC
- file { '/usr/lib/perl5/vendor_perl/5.12.3/Youri/Repository/Mageia.pm':
+ include mga-common::var::perl
+ file { [ "${mga-common::var::perl::site_perl_dir}/Youri",
+ "${mga-common::var::perl::site_perl_dir}/Youri/Repository"]:
+ ensure => directory,
+ mode => 0755,
+ owner => root,
+ group => root,
+ }
+ file { "${mga-common::var::perl::site_perl_dir}/Youri/Repository/Mageia.pm":
source => 'puppet:///modules/buildsystem/Mageia.pm',
}