Permalink
Browse files

RHEL/CentOS 6 changed curl-devel to libcurl-devel, and, unlike yum, P…

…uppet doesn't follow that change
  • Loading branch information...
1 parent 0bb2ce3 commit e671e199ddc627a52372bc2b8d8fa6dc3087df65 @sgp committed Mar 8, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 manifests/dependencies/centos.pp
View
9 manifests/dependencies/centos.pp
@@ -1,12 +1,19 @@
class rvm::dependencies::centos {
+ case $operatingsystemrelease {
+ /^6\..*/: {
+ if ! defined(Package['libcurl-devel']) { package { 'libcurl-devel': ensure => installed } }
+ }
+ default: {
+ if ! defined(Package['curl-devel']) { package { 'curl-devel': ensure => installed } }
+ }
+ }
if ! defined(Package['which']) { package { 'which': ensure => installed } }
if ! defined(Package['gcc']) { package { 'gcc': ensure => installed } }
if ! defined(Package['gcc-c++']) { package { 'gcc-c++': ensure => installed } }
if ! defined(Package['make']) { package { 'make': ensure => installed } }
if ! defined(Package['gettext-devel']) { package { 'gettext-devel': ensure => installed } }
if ! defined(Package['expat-devel']) { package { 'expat-devel': ensure => installed } }
- if ! defined(Package['curl-devel']) { package { 'curl-devel': ensure => installed } }
if ! defined(Package['zlib-devel']) { package { 'zlib-devel': ensure => installed } }
if ! defined(Package['openssl-devel']) { package { 'openssl-devel': ensure => installed } }
if ! defined(Package['perl']) { package { 'perl': ensure => installed } }

0 comments on commit e671e19

Please sign in to comment.