From 89b93cd74918f7ba2586b4fc3e9ce8044ba4d38d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 6 Apr 2013 00:59:20 -0300 Subject: More samba parameters at nodo::nas::share --- manifests/nas/share.pp | 29 +++++++++++++++++++++-------- 1 file 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 -- cgit v1.2.3