From c8e5bd503521270695f4ed32cc32ca40937784e3 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 6 Apr 2013 18:28:44 -0300 Subject: Adds owner, group and mode to nodo::nas::share --- manifests/nas/share.pp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/manifests/nas/share.pp b/manifests/nas/share.pp index 44677cb..f50cebd 100644 --- a/manifests/nas/share.pp +++ b/manifests/nas/share.pp @@ -2,6 +2,9 @@ define nodo::nas::share( $description, $folder, + $owner = '', + $group = '', + $mode = '', $dlna_type = '', $nfs_export_target = '127.0.0.1', $nfs_export_options = 'ro,sync,no_subtree_check', @@ -78,6 +81,18 @@ define nodo::nas::share( if $cache != '' { file { [ "${cache}/${name}" ]: ensure => directory, + owner => $owner ? { + '' => undef, + default => $owner, + }, + group => $group ? { + '' => undef, + default => $group, + }, + mode => $mode ? { + '' => undef, + default => $mode, + }, } } } -- cgit v1.2.3