Commit 8fd3ee67 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Add s3fs role

parent a94544a0
Pipeline #2812 passed with stage
in 41 seconds
---
- 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 %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment