tripleo-image-elements/elements/nfs-server/README.md
Giulio Fidente cd6ed180e3 Improve nfs-server to support multiple shares and options
With this we aim at making the nfs-server element capable of
deploying an arbitrary number of shares and to define for each
a list of clients allowed and the respective export options.

Change-Id: Ib056885c94c3bc475ed0e84237c83414795fc8e0
2014-10-20 11:53:16 +02:00

791 B

Installs and configures NFS server services.

When added to an image this element will, depending on the config data, create a number of NFS shares and export them to the given list of clients with respective options.

Shares are created in /mnt/state/var/lib/nfs

Configuration

nfs_server:
  shares:
  - name: share_name
    clients:
    - machine: machine_allowed
      options: rw,async,no_root_squash

NOTE:

  • share_name should be a valid POSIX dirname, special chars, spaces or use of quotes is not supported

  • share dir created on filesystem will be owned by root/root with mode 0770

  • machine is required, defines the list of allowed clients, can be repeated

  • options can be omitted the following are used: rw,async,no_root_squash