Blocks that mount file systems.

Mount Storage

Ensures a network filesystem is mounted, and in the filesystem table.

Generates: a storage promise.

Settings

Setting Required Description
Mount point Yes Where the share is mounted on the host, e.g. /mnt/share.
Server Yes Hostname or IP of the file server.
Remote path Yes The exported path on the server, e.g. /export/data.
Filesystem type Yes One of: nfs, nfs2, nfs3, nfs4, panfs, cifs. Default: nfs.

Example

The policy it generates, for example:

# Mount the share
storage:
  "/mnt/share" mount => remote_mount("nfs", "nas.local", "/exports/share");

body mount remote_mount(type, server, source)
{
  mount_type => "$(type)";
  mount_server => "$(server)";
  mount_source => "$(source)";
  edit_fstab => "true";
}