diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2013-04-05 23:48:02 -0300 | 
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2013-04-05 23:48:02 -0300 | 
| commit | f2716d1d3a895dae289ab656f6c69f0540b8db3d (patch) | |
| tree | 868173c37c3686eff690057216633ada4d494003 /manifests | |
| parent | b9a41652b107adb891516f0ebad4beceb2720fcd (diff) | |
| download | puppet-nodo-f2716d1d3a895dae289ab656f6c69f0540b8db3d.tar.gz puppet-nodo-f2716d1d3a895dae289ab656f6c69f0540b8db3d.tar.bz2 | |
More samba parameters at nodo::nas::share
Diffstat (limited to 'manifests')
| -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, | 
