summaryrefslogtreecommitdiff
path: root/manifests/postgres.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/postgres.pp')
-rw-r--r--manifests/postgres.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/postgres.pp b/manifests/postgres.pp
index f43c360..af7c563 100644
--- a/manifests/postgres.pp
+++ b/manifests/postgres.pp
@@ -1,5 +1,6 @@
class rubygems::postgres {
- if $::operatingsystem == 'CentOS' and $::operatingsystemmajrelease > 5 {
+ if $::osfamily == 'RedHat' and
+ versioncmp($::operatingsystemmajrelease,'5') > 0 {
package{'rubygem-pg':
ensure => installed,
}