summaryrefslogtreecommitdiff
path: root/puppet/modules/rubygems/manifests/bcrypt.pp
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2016-07-12 16:46:02 -0400
committerMicah <micah@leap.se>2016-07-12 16:46:02 -0400
commit10c80c65126cd84e6010495d30cb921d245f0d33 (patch)
tree63c45dbde4c8aca9e9ec847aaae87d352e0b0a00 /puppet/modules/rubygems/manifests/bcrypt.pp
parentb5c3c14ae094bff896d19ee37f967e8fc8c34017 (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/bcrypt.pp')
-rw-r--r--puppet/modules/rubygems/manifests/bcrypt.pp14
1 files changed, 14 insertions, 0 deletions
diff --git a/puppet/modules/rubygems/manifests/bcrypt.pp b/puppet/modules/rubygems/manifests/bcrypt.pp
new file mode 100644
index 00000000..4c646477
--- /dev/null
+++ b/puppet/modules/rubygems/manifests/bcrypt.pp
@@ -0,0 +1,14 @@
+class rubygems::bcrypt {
+ if ($::osfamily == 'RedHat') and
+ versioncmp($::operatingsystemrelease,'6') > 0 {
+ package{'rubygem-bcrypt':
+ ensure => present,
+ }
+ } else {
+ require rubygems
+ package{'bcrypt-ruby':
+ ensure => present,
+ provider => gem,
+ }
+ }
+}