tripleo-image-elements/elements/nfs-server
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
..
install.d Improve nfs-server to support multiple shares and options 2014-10-20 11:53:16 +02:00
os-apply-config/etc Improve nfs-server to support multiple shares and options 2014-10-20 11:53:16 +02:00
os-refresh-config Improve nfs-server to support multiple shares and options 2014-10-20 11:53:16 +02:00
element-deps Adds nfs-server element 2014-03-09 23:41:50 -04:00
pkg-map Improve nfs-server to support multiple shares and options 2014-10-20 11:53:16 +02:00
README.md Improve nfs-server to support multiple shares and options 2014-10-20 11:53:16 +02:00

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