diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-04-06 00:59:20 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-04-06 00:59:20 -0300 |
commit | 89b93cd74918f7ba2586b4fc3e9ce8044ba4d38d (patch) | |
tree | 7150e5aea8fa3d3e11855070e231c30416dfd56d /manifests | |
parent | f4900a357887257ee97e7e1bb9e73ed1f7cbb0fd (diff) | |
download | puppet-nodo-89b93cd74918f7ba2586b4fc3e9ce8044ba4d38d.tar.gz puppet-nodo-89b93cd74918f7ba2586b4fc3e9ce8044ba4d38d.tar.bz2 |
More samba parameters at nodo::nas::share
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/nas/share.pp | 29 |
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 |