Skip to content

Commit

Permalink
apply static mount opts
Browse files Browse the repository at this point in the history
  • Loading branch information
rptaylor committed Nov 21, 2023
1 parent 08a47dd commit 560f459
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ cvmfs_configuration:
# If false, static mounts will be configured instead (may be necessary for some container engines to use CVMFS).
# Switching a client system from autofs to static mode requires some manual operations and is not supported by this Ansible role.
cvmfs_auto_setup: true
# If static mounts are used, these mount options will be applied in /etc/fstab (see https://github.com/cvmfs/cvmfs/issues/3447).
cvmfs_mount_opts: "defaults,_netdev,x-systemd.mount-timeout=3min"

# Use FUSE3
cvmfs_use_fuse3: true
Expand Down
2 changes: 1 addition & 1 deletion tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
path: "/cvmfs/{{ item }}"
fstype: "cvmfs"
src: "{{ item }}"
opts: "defaults"
opts: "{{ cvmfs_mount_opts }}"
state: "{% if not cvmfs_auto_setup %}mounted{% elif cvmfs_force_unmount %}absent{% endif %}"
when: (not cvmfs_auto_setup) or (cvmfs_force_unmount)
loop: "{{ cvmfs_repositories }}"
Expand Down

0 comments on commit 560f459

Please sign in to comment.