Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added new parameters to s3cmd::get resource

  • Loading branch information...
commit c83e8ded4a2b76cdd95db6e9333f27d893dfe7ad 1 parent b6860e7
Rafael Luque authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 manifests/get.pp
View
10 manifests/get.pp
@@ -2,10 +2,16 @@
$bucket,
$object,
$local_file,
- $options) {
+ $options,
+ $tries = 1,
+ $try_sleep = 1,
+ $config_file = '/root/.s3cfg') {
exec { "s3cmd-get-$bucket-$object":
- command => "s3cmd $options get s3://$bucket/$object $local_file"
+ command => "s3cmd -c $config_file $options get s3://$bucket/$object $local_file",
+ logoutput => 'on_failure',
+ tries => $tries,
+ try_sleep => $try_sleep
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.