Skip to content

Commit 45d3fee

Browse files
authored
Merge pull request #15 from cvmfs-contrib/20231121-static-mount-ops
apply static mount opts
2 parents 08a47dd + 560f459 commit 45d3fee

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ cvmfs_configuration:
1717
# If false, static mounts will be configured instead (may be necessary for some container engines to use CVMFS).
1818
# Switching a client system from autofs to static mode requires some manual operations and is not supported by this Ansible role.
1919
cvmfs_auto_setup: true
20+
# If static mounts are used, these mount options will be applied in /etc/fstab (see https://github.com/cvmfs/cvmfs/issues/3447).
21+
cvmfs_mount_opts: "defaults,_netdev,x-systemd.mount-timeout=3min"
2022

2123
# Use FUSE3
2224
cvmfs_use_fuse3: true

tasks/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
path: "/cvmfs/{{ item }}"
2727
fstype: "cvmfs"
2828
src: "{{ item }}"
29-
opts: "defaults"
29+
opts: "{{ cvmfs_mount_opts }}"
3030
state: "{% if not cvmfs_auto_setup %}mounted{% elif cvmfs_force_unmount %}absent{% endif %}"
3131
when: (not cvmfs_auto_setup) or (cvmfs_force_unmount)
3232
loop: "{{ cvmfs_repositories }}"

0 commit comments

Comments
 (0)