salt.modules.nfs3
Module for managing NFS version 3.
-
salt.modules.nfs3.add_export(exports='/etc/exports', path=None, hosts=None, options=None)
Add an export
CLI Example:
salt '*' nfs3.add_export path='/srv/test' hosts='127.0.0.1' options=['rw']
-
salt.modules.nfs3.del_export(exports='/etc/exports', path=None)
Remove an export
CLI Example:
salt '*' nfs.del_export /media/storage
-
salt.modules.nfs3.list_exports(exports='/etc/exports')
List configured exports
CLI Example:
salt '*' nfs.list_exports
-
salt.modules.nfs3.reload_exports()
Trigger a reload of the exports file to apply changes
CLI Example:
salt '*' nfs3.reload_exports