Handling NFS Mount

Other topics

Remarks:

Mounting a remote NFS drive

mount { '/path/to/local/folder':
  ensure  => 'mounted',
  atboot  => false,
  device  => 'server-ip-or-domain:/path/to/server/folder',
  fstype  => 'nfs',
  options => 'defaults',
  pass    => 0,
}

Parameters:

ParameterDetails
nameThe path to local directory in which the remote drive should be mounted.
deviceRemote server address and directory path on remote server, separated by :
atbootWhether this drive should be mounted while booting. Enabling makes drives available sooner, but may cause delayed boot in case of network or mounting problem.
passFsck order is to tell fsck what order to check the file systems, if set to "0" file system is ignored. Usually NFS drives need not be checked in clients, so "0" is a suitable option.

Contributors

Topic Id: 8044

Example Ids: 25977

This site is not affiliated with any of the contributors.