diff options
author | Micah <micah@leap.se> | 2016-05-24 10:19:29 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-05-24 10:19:29 -0400 |
commit | bb96faedbd64f08a96e9ba65d8641fc4eb4a46a5 (patch) | |
tree | 8ce071b5f5d92ad69ed6596266d25998d9d16571 /puppet/modules/rubygems/manifests/gpgme.pp | |
parent | 0368d69fe1b2bab034b42a738dd1efabf2f14f54 (diff) | |
parent | 56761711a92ece9414ed5a7ba67ef1ede724e4db (diff) |
Merge commit '56761711a92ece9414ed5a7ba67ef1ede724e4db' as 'puppet/modules/rubygems'
Diffstat (limited to 'puppet/modules/rubygems/manifests/gpgme.pp')
-rw-r--r-- | puppet/modules/rubygems/manifests/gpgme.pp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/puppet/modules/rubygems/manifests/gpgme.pp b/puppet/modules/rubygems/manifests/gpgme.pp new file mode 100644 index 00000000..e9b04a9a --- /dev/null +++ b/puppet/modules/rubygems/manifests/gpgme.pp @@ -0,0 +1,35 @@ +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' + } + default: { + # don't need to install gpgme as gem, debian package works + # fine with the gpg module + $provider = 'apt' + $packagename = 'libgpgme-ruby' + } + } + } + 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 + } +} |