feat: initial commit

This commit is contained in:
Simon Cornet 2026-04-07 16:43:41 +02:00
commit 369761fcb6
11 changed files with 167 additions and 93 deletions

View file

@ -0,0 +1,20 @@
[Unit]
Description=NFS share from {{ __nfs_mount['nfs_host'] }}:{{ __nfs_mount['nfs_dir'] }} to {{ __nfs_mount['local_dir_path'] }}
DefaultDependencies=no
Conflicts=umount.target
After=network-online.target remote-fs.target
Before=umount.target
{% if __nfs_mount['before_service'] is defined %}
{% for __before_service in __nfs_mount['before_service'] %}
Before={{ __before_service }}
{% endfor %}
{% endif %}
[Mount]
What={{ __nfs_mount['nfs_host'] }}:{{ __nfs_mount['nfs_dir'] }}
Where={{ __nfs_mount['local_dir_path'] }}
Type={{ __nfs_mount['nfs_fstype'] | default('nfs4') }}
Options={{ __nfs_mount['nfs_opts'] }}
[Install]
WantedBy=multi-user.target