aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/nas/share.pp29
1 files changed, 21 insertions, 8 deletions
diff --git a/manifests/nas/share.pp b/manifests/nas/share.pp
index beeb059..44677cb 100644
--- a/manifests/nas/share.pp
+++ b/manifests/nas/share.pp
@@ -2,12 +2,15 @@
define nodo::nas::share(
$description,
$folder,
- $dlna_type = '',
- $nfs_export_target = '127.0.0.1',
- $nfs_export_options = 'ro,sync,no_subtree_check',
- $samba_guest_only = true,
- $samba_guest_ok = true,
- $samba_force_group = ''
+ $dlna_type = '',
+ $nfs_export_target = '127.0.0.1',
+ $nfs_export_options = 'ro,sync,no_subtree_check',
+ $samba_guest_only = true,
+ $samba_guest_ok = true,
+ $samba_force_group = '',
+ $samba_read_only = '',
+ $samba_create_mask = '0644',
+ $samba_directory_mask = '0755'
) {
# DLNA share
@@ -31,9 +34,19 @@ define nodo::nas::share(
'' => undef,
default => $samba_force_group,
},
+ read_only => $samba_read_only ? {
+ '' => undef,
+ default => $samba_read_only,
+ },
+ create_mask => $samba_create_mask ? {
+ '' => undef,
+ default => $samba_create_mask,
+ },
+ directory_mask => $samba_directory_mask ? {
+ '' => undef,
+ default => $samba_directory_mask,
+ },
browsable => true,
- create_mask => 0777,
- directory_mask => 0777,
}
# NFS export