Skip to content
Snippets Groups Projects
Commit 14328462 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Merge branch 'th/s3fs' into 'master'

Add s3fs role

See merge request !2
parents cb63a6f3 4877c293
No related branches found
No related tags found
1 merge request!2Add s3fs role
Pipeline #3252 passed
---
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
---
- 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 }}"
{% for i in s3fs -%}
{{ i.bucket }}:{{ i.accesskey }}:{{ i.secret }}
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment