mount { '/path/to/local/folder':
ensure => 'mounted',
atboot => false,
device => 'server-ip-or-domain:/path/to/server/folder',
fstype => 'nfs',
options => 'defaults',
pass => 0,
}
Parameter | Details |
---|---|
name | The path to local directory in which the remote drive should be mounted. |
device | Remote server address and directory path on remote server, separated by : |
atboot | Whether this drive should be mounted while booting. Enabling makes drives available sooner, but may cause delayed boot in case of network or mounting problem. |
pass | Fsck 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. |