!!! This project has been deprecated. We recommend you search the Chef Supermarket for a supported alternative !!!
Configures s3cmd
- Chef 10.x
Platform:
- CentOS 6.x
- RHEL 6.x
Add the s3cmd cookbook to your role/run_list.
node["s3cmd"]["version"] - Version of s3cmd to install.
Configures s3cmd
Downloads a file from s3
s3cmd_file "LOCAL_FILE" do
action :download
bucket "BUCKET_TO_DOWNLOAD_FROM"
object_name "OBJECT_TO_DOWNLOAD"
owner "LOCAL_FILE_OWNER"
group "LOCAL_FILE_GROUP"
mode "LOCAL_FILE_MODE"
force true
end
Uploads a file to s3
s3cmd_file "LOCAL_FILE" do
action :upload
bucket "BUCKET_TO_DOWNLOAD_FROM"
headers 'header1' => 'value1',
'header2' => 'value2'
object_name "OBJECT_TO_DOWNLOAD"
acl_public true
end
- Thomas Bishop (@thbishop)
- Brett Weaver (@brettweavnet)