diff options
-rw-r--r-- | manifests/nas/share.pp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/manifests/nas/share.pp b/manifests/nas/share.pp index fa534fa..b983f4c 100644 --- a/manifests/nas/share.pp +++ b/manifests/nas/share.pp @@ -5,6 +5,9 @@ define nodo::nas::share( $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 share @@ -18,8 +21,16 @@ define nodo::nas::share( samba::server::share { $name: comment => $description, path => $folder, - guest_only => true, - guest_ok => true, + guest_only => $samba_guest_only, + guest_ok => $samba_guest_ok, + force_user => $samba_force_user ? { + '' => undef, + default => $samba_force_user, + }, + force_group => $samba_force_group ? { + '' => undef, + default => $samba_force_group, + }, browsable => true, create_mask => 0777, directory_mask => 0777, |