Files
dotfiles/config/ansible/templates/geesefs-mount.sh.j2
Menno van Leeuwen d8e559b102
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 13s
Nix Format Check / check-format (push) Successful in 51s
Python Lint Check / check-python (push) Has been cancelled
feat: add GeeseFS mount service and associated scripts
2025-03-12 20:42:17 +01:00

16 lines
516 B
Django/Jinja

#!/bin/bash
# Export AWS credentials from 1Password
export AWS_ACCESS_KEY_ID="$(op read "op://j7nmhqlsjmp2r6umly5t75hzb4/Hetzner Object Storage Bucket/AWS_ACCESS_KEY_ID")"
export AWS_SECRET_ACCESS_KEY="$(op read "op://j7nmhqlsjmp2r6umly5t75hzb4/Hetzner Object Storage Bucket/AWS_SECRET_ACCESS_KEY")"
# Mount GeeseFS
exec {{ geesefs_install_path }} \
--endpoint https://hel1.your-objectstorage.com \
--list-type=2 \
--disable-xattr \
--no-implicit-dir \
--no-dir-object \
mvl-sh \
/mnt/object_storage