summaryrefslogtreecommitdiff
path: root/puppet/modules/rubygems/manifests/bcrypt.pp
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/rubygems/manifests/bcrypt.pp')
m---------puppet/modules/rubygems0
-rw-r--r--puppet/modules/rubygems/manifests/bcrypt.pp14
2 files changed, 14 insertions, 0 deletions
diff --git a/puppet/modules/rubygems b/puppet/modules/rubygems
deleted file mode 160000
-Subproject e704c9fe1c40fea5b10fe3ca2b4f5de825341cc
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,
+ }
+ }
+}