NFS Server Role
Installs and sets up a NFS-Server with the speicified settings. If UFW is being used automatically opens port 2049.
Requirements
None
Role Variables
Variable | Required | Default | Choices | Comments |
---|---|---|---|---|
nfs_server_conf | no | false | true, false | Define if NFS Server role is being run |
nfs_export_mount | yes | [] | String | Specify the NFS Mount |
nfs_server_ips | yes | [] | string | Specify the allowed IP addresses |
nfs_server_options | no | [] | string | Speccfy the NFS option of the exports |
nfs_server_file_permissions | yes | default "umask" of system | string | Specify the file permissions for the NFS directory |
nfs_server_owner_group | no | root | string | Specify owner group for the NFS directory |
Dependencies
None
Example
Add the variables in the inventory to the Host
jammy_headless:
hosts:
s4d-test-###.ethz.ch:
nfs_server_conf: true
nfs_server_exports:
- nfs_export_mount: /srv/nfsexport/directory
nfs_server_ips: 555.555.666.333 222.222.222.222
nfs_server_options: rw,no_root_squash,async,insecure,no_subtree_check,sec=sys
nfs_server_file_permissions: 777
nfs_server_owner_group: id-s4d-root0-linux-admins
License
BSD
Author Information
Maintainer: Philipp Sauter
https://linux.ethz.ch/index.html