blob: c4c08dd5a8d8c4a1282133242c68a10f62d7766e (
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 = 'rw,no_root_squash,no_subtree_check',
) {
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,
}
}
}
|