Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ All node attributes are set under the :s3cmd namespace.
* :users - array of usernames for whom a .s3cfg will be created in their home directory; defaults to [:root]
* :aws_access_key_id - AWS access key for S3
* :aws_secret_access_key - AWS secret access key for S3
* :bucket_location - AWS bucket location for S3; defaults to "US"

= USAGE:

Just add the s3cmd recipe to the applicable nodes
Just add the s3cmd recipe to the applicable nodes
7 changes: 6 additions & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# list of users that will have the s3cmd configuration
default[:s3cmd][:users] = [:root]

# Bucket Location
default[:s3cmd][:bucket_location] = "US"

# S3 credentials
default[:s3cmd][:aws_access_key_id] = ""
default[:s3cmd][:aws_secret_access_key] = ""

# s3cmd details
default[:s3cmd][:repository] = "git://github.com/s3tools/s3cmd.git"
default[:s3cmd][:version] = "v1.1.0-beta3"
default[:s3cmd][:user] = "root"
default[:s3cmd][:install_prefix_root] = "/usr/local"
default[:s3cmd][:install_prefix_root] = "/usr/local"
2 changes: 1 addition & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
end

git "#{node[:s3cmd][:install_prefix_root]}/share/s3cmd" do
repository "git://github.com/s3tools/s3cmd.git"
repository "#{node[:s3cmd][:repository]}"
reference node[:s3cmd][:version]
action :sync
end
Expand Down
4 changes: 2 additions & 2 deletions templates/default/s3cfg.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[default]
access_key = <%= node[:s3cmd][:aws_access_key_id] %>
acl_public = False
bucket_location = US
bucket_location = <%= node[:s3cmd][:bucket_location] %>
cloudfront_host = cloudfront.amazonaws.com
cloudfront_resource = /2008-06-30/distribution
default_mime_type = binary/octet-stream
Expand Down Expand Up @@ -32,4 +32,4 @@ simpledb_host = sdb.amazonaws.com
skip_existing = False
urlencoding_mode = normal
use_https = False
verbosity = WARNING
verbosity = WARNING