Skip to content

Commit

Permalink
Merge pull request #39 from rji/fix-curl-resource
Browse files Browse the repository at this point in the history
only install curl if it isn't defined elsewhere
  • Loading branch information
carlossg committed May 13, 2014
2 parents 478d842 + d1943ad commit 5a4ef08
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions manifests/system.pp
Expand Up @@ -9,12 +9,14 @@
}

# curl needs to be installed
case $::kernel {
Linux: {
ensure_packages(['curl'])
Package['curl'] -> Exec['system-rvm']
if ! defined(Package['curl']) {
case $::kernel {
Linux: {
ensure_packages(['curl'])
Package['curl'] -> Exec['system-rvm']
}
default: {}
}
default: {}
}

exec { 'system-rvm':
Expand Down

0 comments on commit 5a4ef08

Please sign in to comment.