blob: 958425503071cbf8f875c404da565c51c086e2ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# = Define: nfs::export
#
define nfs::export (
$export_directory,
$export_target,
$ensure = present,
$export_options = 'no_root_squash',
) {
if ! $::nfs::server {
fail 'NFS server support is not enabled.'
}
if $ensure == present {
concat::fragment { "export_${name}":
target => $::nfs::config_file,
content => template('nfs/export.erb'),
order => 10,
}
}
}
|