feat: remove GeeseFS mount service and script templates
This commit is contained in:
parent
6929583710
commit
3d5010e193
@ -1,15 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Mount GeeseFS object storage
|
|
||||||
After=network-online.target
|
|
||||||
Wants=network-online.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
ExecStart=/usr/local/bin/geesefs-mount.sh
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
User=root
|
|
||||||
Group=root
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
@ -1,28 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Export AWS credentials from 1Password
|
|
||||||
export AWS_ACCESS_KEY_ID="{{ lookup('community.general.onepassword', 'mfk2qgnaplgtk6xmfc3r6w6neq', vault='j7nmhqlsjmp2r6umly5t75hzb4', field='AWS_ACCESS_KEY_ID') }}"
|
|
||||||
export AWS_SECRET_ACCESS_KEY="{{ lookup('community.general.onepassword', 'mfk2qgnaplgtk6xmfc3r6w6neq', vault='j7nmhqlsjmp2r6umly5t75hzb4', field='AWS_SECRET_ACCESS_KEY') }}"
|
|
||||||
|
|
||||||
# Ensure the mount is available at all times
|
|
||||||
while true; do
|
|
||||||
if ! mountpoint -q /mnt/object_storage; then
|
|
||||||
sudo -E geesefs \
|
|
||||||
--endpoint https://hel1.your-objectstorage.com \
|
|
||||||
--list-type=2 \
|
|
||||||
--disable-xattr \
|
|
||||||
--no-implicit-dir \
|
|
||||||
--no-dir-object \
|
|
||||||
-o allow_other \
|
|
||||||
--uid 1000 \
|
|
||||||
--gid 100 \
|
|
||||||
mvl-sh \
|
|
||||||
/mnt/object_storage
|
|
||||||
|
|
||||||
# If it failed die
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
sleep 5
|
|
||||||
done
|
|
Loading…
x
Reference in New Issue
Block a user