ansible rework
This commit is contained in:
parent
67414814c0
commit
eecff4345a
47 changed files with 1995 additions and 538 deletions
52
ansible/roles/s3fs/defaults/main.yaml
Normal file
52
ansible/roles/s3fs/defaults/main.yaml
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
---
|
||||
# S3FS role defaults
|
||||
|
||||
# S3 Configuration
|
||||
s3_endpoint: "https://{{ s3_region }}.your-objectstorage.com"
|
||||
s3_region: "hel1"
|
||||
|
||||
# S3 Credentials (should be overridden in group_vars or vault)
|
||||
s3_access_key: ""
|
||||
s3_secret_key: ""
|
||||
|
||||
# S3 Buckets to mount (non-replication buckets only)
|
||||
s3_buckets:
|
||||
- name: asxpio-terraform-main
|
||||
mount_point: /mnt/s3/terraform
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
- name: asxpio-backups-main
|
||||
mount_point: /mnt/s3/backups
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
- name: asxpio-immich-main
|
||||
mount_point: /mnt/s3/immich
|
||||
owner: root
|
||||
group: docker
|
||||
mode: "0775"
|
||||
|
||||
# S3FS mount options
|
||||
# Note: s3fs_ensure_diskfree is defined per-host in host_vars/
|
||||
s3fs_options:
|
||||
- "passwd_file=/etc/s3fs/.passwd-s3fs"
|
||||
- "use_path_request_style"
|
||||
- "url={{ s3_endpoint }}"
|
||||
- "allow_other"
|
||||
- "umask=0022"
|
||||
- "uid={{ s3fs_uid | default('0') }}"
|
||||
- "gid={{ s3fs_gid | default('0') }}"
|
||||
- "use_cache=/var/cache/s3fs"
|
||||
- "ensure_diskfree={{ s3fs_ensure_diskfree | default(81920) }}"
|
||||
- "max_stat_cache_size=10000"
|
||||
- "stat_cache_expire=900"
|
||||
- "parallel_count=15"
|
||||
- "multipart_size=52"
|
||||
- "nocopyapi"
|
||||
- "enable_noobj_cache"
|
||||
|
||||
# Package dependencies
|
||||
s3fs_packages:
|
||||
- s3fs
|
||||
- fuse3
|
||||
Loading…
Add table
Add a link
Reference in a new issue