aboutsummaryrefslogtreecommitdiff
path: root/manifests/nas
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/nas')
-rw-r--r--manifests/nas/share.pp15
1 files changed, 15 insertions, 0 deletions
diff --git a/manifests/nas/share.pp b/manifests/nas/share.pp
index 44677cb..f50cebd 100644
--- a/manifests/nas/share.pp
+++ b/manifests/nas/share.pp
@@ -2,6 +2,9 @@
define nodo::nas::share(
$description,
$folder,
+ $owner = '',
+ $group = '',
+ $mode = '',
$dlna_type = '',
$nfs_export_target = '127.0.0.1',
$nfs_export_options = 'ro,sync,no_subtree_check',
@@ -78,6 +81,18 @@ define nodo::nas::share(
if $cache != '' {
file { [ "${cache}/${name}" ]:
ensure => directory,
+ owner => $owner ? {
+ '' => undef,
+ default => $owner,
+ },
+ group => $group ? {
+ '' => undef,
+ default => $group,
+ },
+ mode => $mode ? {
+ '' => undef,
+ default => $mode,
+ },
}
}
}