Puppet Class: nfs::service::exportfs

Inherits:
nfs::service
Defined in:
manifests/service/exportfs.pp

Summary

A simple wrapper around exportfs

Overview

Something you can notify for exportfs

Examples:

include nfs::service::exportfs
notify => Class['nfs::service::exportfs']

Parameters:

  • exportfs (Any) (defaults to: $nfs::service::exportfs)

    Path to the exportfs command

  • exportfs_arguments (Any) (defaults to: $nfs::service::exportfs_arguments)

    Array of arguments to use with exportfs



16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'manifests/service/exportfs.pp', line 16

class nfs::service::exportfs (
  $exportfs = $nfs::service::exportfs,
  $exportfs_arguments = $nfs::service::exportfs_arguments
) inherits nfs::service {
  assert_private()

  $exportfs_args = join($exportfs_arguments, ' ')

  exec { 'Refresh NFS Exports':
    command     => "${exportfs} ${exportfs_args}",
    refreshonly => true,
  }
}