feat: initial commit
This commit is contained in:
parent
61f0315af4
commit
369761fcb6
11 changed files with 167 additions and 93 deletions
20
templates/systemd/mount.j2
Normal file
20
templates/systemd/mount.j2
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue