summaryrefslogtreecommitdiff
path: root/manifests/postgres.pp
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2016-05-24 10:19:29 -0400
committerMicah <micah@leap.se>2016-05-24 10:19:29 -0400
commit56761711a92ece9414ed5a7ba67ef1ede724e4db (patch)
tree1a73a8b11a651e43c5957ed456ef6ad74cd8fd51 /manifests/postgres.pp
Squashed 'puppet/modules/rubygems/' content from commit 510a369
git-subtree-dir: puppet/modules/rubygems git-subtree-split: 510a3693eab5dc78ed27d3728ee4d3b12334ea12
Diffstat (limited to 'manifests/postgres.pp')
-rw-r--r--manifests/postgres.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/postgres.pp b/manifests/postgres.pp
new file mode 100644
index 00000000..8720f4ef
--- /dev/null
+++ b/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':}
+ }
+}