Class nfs::server
In: /modules/nfs/manifests/server.pp
Parent:

Class: nfs::server

Simple nfs-server class, for both v3 and v4 Sample Usage :

 class { 'nfs::server':
     exports_content => "/nfs 192.168.1.0/24(rw,no_root_squash,async)\n",
 }

Resources

Included Classes

nfs::rpcbind

Resources

File["/etc/exports"]
   source => $exports_source
   content => $exports_content
   notify => Service["nfs"]
File["/etc/sysconfig/nfs"]
   require => Package["nfs-utils"]
   content => template("nfs/sysconfig-nfs.erb")

Configuration

Package["nfs-utils"]
   ensure => installed
Service["nfs"]
   require => Service["rpcbind"]
   subscribe => File["/etc/sysconfig/nfs"]
   enable => true
   ensure => running
   restart => "/sbin/service nfs reload"
   status => "/sbin/pidof nfsd"

[Validate]