diff options
author | Micah <micah@leap.se> | 2016-07-12 16:46:02 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-07-12 16:46:02 -0400 |
commit | 10c80c65126cd84e6010495d30cb921d245f0d33 (patch) | |
tree | 63c45dbde4c8aca9e9ec847aaae87d352e0b0a00 /puppet/modules/rubygems/manifests/gpgme.pp | |
parent | b5c3c14ae094bff896d19ee37f967e8fc8c34017 (diff) |
git subrepo clone https://leap.se/git/puppet_rubygems puppet/modules/rubygems
subrepo:
subdir: "puppet/modules/rubygems"
merged: "510a369"
upstream:
origin: "https://leap.se/git/puppet_rubygems"
branch: "master"
commit: "510a369"
git-subrepo:
version: "0.3.0"
origin: "https://github.com/ingydotnet/git-subrepo"
commit: "1e79595"
Change-Id: Id2668c747e7d8b0a73415180baee9edece1017db
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 + } +} |