diff options
author | Micah <micah@leap.se> | 2016-05-24 10:19:29 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-05-24 10:19:29 -0400 |
commit | bb96faedbd64f08a96e9ba65d8641fc4eb4a46a5 (patch) | |
tree | 8ce071b5f5d92ad69ed6596266d25998d9d16571 /puppet/modules/rubygems/manifests/postgres.pp | |
parent | 0368d69fe1b2bab034b42a738dd1efabf2f14f54 (diff) | |
parent | 56761711a92ece9414ed5a7ba67ef1ede724e4db (diff) |
Merge commit '56761711a92ece9414ed5a7ba67ef1ede724e4db' as 'puppet/modules/rubygems'
Diffstat (limited to 'puppet/modules/rubygems/manifests/postgres.pp')
-rw-r--r-- | puppet/modules/rubygems/manifests/postgres.pp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/puppet/modules/rubygems/manifests/postgres.pp b/puppet/modules/rubygems/manifests/postgres.pp new file mode 100644 index 00000000..8720f4ef --- /dev/null +++ b/puppet/modules/rubygems/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':} + } +} |