nfs_export: second draft of argument layout

This commit is contained in:
Nathan Fish 2017-06-12 16:20:16 -05:00
parent 7bb9851cd9
commit da76b9723a

View File

@ -3,22 +3,30 @@
Management of NFS exports
===============================================
.. code-block:: yaml
To ensure an NFS export exists:
.. code-block:: yaml
add_export:
nfs_export.present:
- name: '/srv/nfs'
- hosts:
- '10.0.2.0/24'
- options:
- 'rw'
- exports:
- hosts:
- '10.0.2.0/24'
- options:
- 'rw'
To have different options for different hosts on the same export, define a separate state.
This creates the following in /etc/exports:
.. code-block:: bash
/srv/nfs 10.0.2.0/24(rw)
Any export of the given path will be modified to match the one specified.
To ensure an NFS export is absent:
.. code-block:: yaml
delete_export:
nfs_export.absent:
- name: '/srv/nfs'