Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of git://github.com/cyberious/puppet-pget
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Fields committed Jun 3, 2014
2 parents 5320a0c + 5fab34b commit 91abcab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# If authentications is required provide both username and password
# [*password*]
# Optional only if username is not supplied
# [*timeout*]
# Optional. Specifies the timeout duration. Default is 300 seconds.
#
# === Examples
#
Expand All @@ -39,6 +41,7 @@
$target = undef, #: the target stage directory
$username = undef, #: Username to be passed
$password = undef, #: password needed,
$timeout = 300, #: timeout
$headerHash = undef, #: additional has parameters for the download of the file, i.e. user-agent, Cookie
){

Expand Down Expand Up @@ -77,7 +80,8 @@
exec{"Download-${filename}":
provider => powershell,
command => $cmd,
unless => "if(Test-Path -Path \"${target_file}\" ){ exit 0 }else{exit 1}"
unless => "if(Test-Path -Path \"${target_file}\" ){ exit 0 }else{exit 1}",
timeout => $timeout,
}
}

Expand Down

0 comments on commit 91abcab

Please sign in to comment.