fix: enhance GeeseFS mount script to ensure persistent availability
This commit is contained in:
parent
b01b4e6a2d
commit
0fc1146b91
@ -4,15 +4,25 @@
|
|||||||
export AWS_ACCESS_KEY_ID="{{ lookup('community.general.onepassword', 'mfk2qgnaplgtk6xmfc3r6w6neq', vault='j7nmhqlsjmp2r6umly5t75hzb4', field='AWS_ACCESS_KEY_ID') }}"
|
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') }}"
|
export AWS_SECRET_ACCESS_KEY="{{ lookup('community.general.onepassword', 'mfk2qgnaplgtk6xmfc3r6w6neq', vault='j7nmhqlsjmp2r6umly5t75hzb4', field='AWS_SECRET_ACCESS_KEY') }}"
|
||||||
|
|
||||||
# Mount GeeseFS
|
# Ensure the mount is available at all times
|
||||||
sudo -E geesefs \
|
while true; do
|
||||||
--endpoint https://hel1.your-objectstorage.com \
|
if ! mountpoint -q /mnt/object_storage; then
|
||||||
--list-type=2 \
|
sudo -E geesefs \
|
||||||
--disable-xattr \
|
--endpoint https://hel1.your-objectstorage.com \
|
||||||
--no-implicit-dir \
|
--list-type=2 \
|
||||||
--no-dir-object \
|
--disable-xattr \
|
||||||
-o allow_other \
|
--no-implicit-dir \
|
||||||
--uid 1000 \
|
--no-dir-object \
|
||||||
--gid 100 \
|
-o allow_other \
|
||||||
mvl-sh \
|
--uid 1000 \
|
||||||
/mnt/object_storage
|
--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