Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
close #20. use curl instead of wget
Browse files Browse the repository at this point in the history
  • Loading branch information
dwerder committed Apr 21, 2015
1 parent e59cbb0 commit e71769b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
$redis_version = $::redis::params::redis_version,
$redis_build_dir = $::redis::params::redis_build_dir,
$redis_install_dir = $::redis::params::redis_install_dir,
$redis_package = $::redis::params::redis_install_package
$redis_package = $::redis::params::redis_install_package,
$download_tool = $::redis::params::download_tool
) inherits redis {
if ( $redis_package == true ) {
case $::operatingsystem {
Expand Down Expand Up @@ -77,7 +78,7 @@
exec { "Download and untar redis ${redis_version}":
require => File[$redis_build_dir],
before => Anchor['redis::prepare_build'],
command => "wget -O - ${redis_download_url} | tar xz",
command => "${download_tool} ${redis_download_url} | tar xz",
creates => "${redis_build_dir}/redis-${::redis::install::redis_version}",
path => $::path,
cwd => $redis_build_dir,
Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
$redis_build_dir = '/opt'
$redis_install_dir = '/usr/bin'
$redis_install_package = false
$download_tool = 'curl -s -L'
}

0 comments on commit e71769b

Please sign in to comment.