Update versioncmp for modern puppet
[puppet_rubygems.git] / manifests / postgres.pp
1 class rubygems::postgres {
2   if $::osfamily == 'RedHat' and
3     versioncmp($::operatingsystemrelease,'5') > 0 {
4     package{'rubygem-pg':
5       ensure => installed,
6     }
7   } else {
8     require postgres::devel
9     rubygems::gem{'ruby-pg':}
10   }
11 }