Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
infra
ansible-shared
supplemental
Commits
14328462
Commit
14328462
authored
Aug 12, 2021
by
Robin Sonnabend
Browse files
Merge branch 'th/s3fs' into 'master'
Add s3fs role See merge request
!2
parents
cb63a6f3
4877c293
Pipeline
#3252
passed with stage
in 41 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
s3fs/defaults/main.yml
0 → 100644
View file @
14328462
---
s3fs
:
[]
# s3fs:
# - bucket: example
# # See s3fs(1) for further options.
# opts:
# - url=http://ceph-rgw.example.com:7480
# - use_path_request_style
# - _netdev
# accesskey: 26W1AVB409SC3T0VJ10T
# secret: hunter2
# # mountpoint: optional, defaults to bucket name
s3fs/tasks/main.yml
0 → 100644
View file @
14328462
---
-
name
:
Install s3fs
apt
:
name
:
s3fs
-
name
:
Configure s3fs credentials
template
:
src
:
passwd-s3fs.j2
dest
:
/etc/passwd-s3fs
mode
:
"
0640"
owner
:
root
group
:
root
-
name
:
Configure s3fs mountpoints
mount
:
fstype
:
fuse.s3fs
opts
:
"
{{
item.opts|join(',')
}}"
path
:
"
/s3fs/{{
item.mountpoint|default(item.bucket)
}}"
src
:
"
{{
item.bucket
}}"
state
:
mounted
loop
:
"
{{
s3fs
}}"
s3fs/templates/passwd-s3fs.j2
0 → 100644
View file @
14328462
{% for i in s3fs -%}
{{ i.bucket }}:{{ i.accesskey }}:{{ i.secret }}
{% endfor %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment