blob: 483fdc937aa8671d2635c119014d27104036c808 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
class rubygems::gpgme{
case $::operatingsystem {
debian,ubuntu: {
case $::lsbdistcodename {
'lenny','squeeze': {
# install gpgme as gem, as the squeeze deb-package is too old
# for i.e. gpg module
$provider = 'gem'
$packagename = 'ruby-gpgme'
}
'wheezy': {
# don't need to install gpgme as gem, debian package works
# fine with the gpg module
$provider = 'apt'
$packagename = 'libgpgme-ruby'
}
default: {
# from jessie on this package
$provider = 'apt'
$packagename = 'ruby-gpgme'
}
}
}
default: {
$provider = 'gem'
$packagename = 'ruby-gpgme'
}
}
if $provider == 'gem' {
require rubygems::devel
require gpg::gpgme::devel
}
package{'ruby-gpgme':
ensure => present,
provider => $provider,
name => $packagename
}
}
|