diff options
author | mh <mh@immerda.ch> | 2012-08-24 18:32:35 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2012-08-24 18:32:35 +0200 |
commit | 91a5718ef915d2482d4f31b60ba5d154e18463ec (patch) | |
tree | d35a180d39de0ecf485e357f05b645e6b1f71e9d | |
parent | 4e1af5cb3dc7082f9daf6c3d66c2a9b2af3af920 (diff) |
from centos 6 on this can be installed that way
-rw-r--r-- | manifests/postgres.pp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/postgres.pp b/manifests/postgres.pp index bcfc511..00f09be 100644 --- a/manifests/postgres.pp +++ b/manifests/postgres.pp @@ -1,4 +1,10 @@ class rubygems::postgres { + if $operatingsystem == 'CentOS' and $lsbmajdistrelease > 5 { + package{'rubygem-pg': + ensure => installed, + } + } else { require postgres::devel rubygems::gem{'ruby-pg':} + } } |