summaryrefslogtreecommitdiff
path: root/puppet/modules/rubygems/manifests/postgres.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/postgres.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/postgres.pp')
-rw-r--r--puppet/modules/rubygems/manifests/postgres.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/puppet/modules/rubygems/manifests/postgres.pp b/puppet/modules/rubygems/manifests/postgres.pp
new file mode 100644
index 00000000..8720f4ef
--- /dev/null
+++ b/puppet/modules/rubygems/manifests/postgres.pp
@@ -0,0 +1,11 @@
+class rubygems::postgres {
+ if $::osfamily == 'RedHat' and
+ versioncmp($::operatingsystemrelease,'5') > 0 {
+ package{'rubygem-pg':
+ ensure => installed,
+ }
+ } else {
+ require postgres::devel
+ rubygems::gem{'ruby-pg':}
+ }
+}