Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
s3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
s3
Commits
ac666dda
Commit
ac666dda
authored
9 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
New role s3client
parents
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/main.yml
+36
-0
36 additions, 0 deletions
tasks/main.yml
templates/s3.cfg
+44
-0
44 additions, 0 deletions
templates/s3.cfg
with
80 additions
and
0 deletions
tasks/main.yml
0 → 100644
+
36
−
0
View file @
ac666dda
---
# file: roles/s3/tasks/main.yml
-
name
:
"
Apt
Keys"
apt_key
:
url="{{item}}"
state=present
with_items
:
-
"
http://s3tools.org/repo/deb-all/stable/s3tools.key"
-
name
:
"
Apt
Repositories"
apt_repository
:
repo="{{item}}"
state=present
with_items
:
-
"
deb
http://s3tools.org/repo/deb-all
stable/"
-
name
:
"
Install
more
packages"
apt
:
pkg={{item}} state=installed update_cache=yes
with_items
:
-
s3cmd
-
name
:
"
Ensure
directory"
file
:
dest=/opt/s3/
owner=root
group=root
state=directory
mode=775
-
name
:
"
Copy
files"
template
:
src="files/s3/{{ item }}"
dest="/opt/s3"
with_items
:
-
"
s3.cfg"
This diff is collapsed.
Click to expand it.
templates/s3.cfg
0 → 100644
+
44
−
0
View file @
ac666dda
[default]
access_key
=
{{ s3_access_key }}
bucket_location
=
US
cloudfront_host
=
cloudfront.amazonaws.com
default_mime_type
=
binary/octet-stream
delete_removed
=
False
dry_run
=
False
enable_multipart
=
True
encoding
=
UTF-8
encrypt
=
False
follow_symlinks
=
False
force
=
False
get_continue
=
False
gpg_command
=
/usr/bin/gpg
gpg_decrypt
=
%(gpg_command)s -d --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
gpg_encrypt
=
%(gpg_command)s -c --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
gpg_passphrase
=
{{ s3_gpg_passphrase }}
guess_mime_type
=
True
host_base
=
s3.amazonaws.com
host_bucket
=
%(bucket)s.s3.amazonaws.com
human_readable_sizes
=
False
invalidate_on_cf
=
False
list_md5
=
False
log_target_prefix
=
mime_type
=
multipart_chunk_size_mb
=
15
preserve_attrs
=
True
progress_meter
=
True
proxy_host
=
proxy_port
=
0
recursive
=
False
recv_chunk
=
4096
reduced_redundancy
=
False
secret_key
=
{{ s3_secret_key }}
send_chunk
=
4096
simpledb_host
=
sdb.amazonaws.com
skip_existing
=
False
socket_timeout
=
300
urlencoding_mode
=
normal
use_https
=
False
verbosity
=
WARNING
website_endpoint
=
http://%(bucket)s.s3-website-%(location)s.amazonaws.com/
website_error
=
website_index
=
index.html
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment