summaryrefslogtreecommitdiff
path: root/puppet/modules/rubygems/manifests/postgres.pp
blob: 8720f4efbeb14ed4d82954a2beea08226d757be9 (plain)
1
2
3
4
5
6
7
8
9
10
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':}
  }
}