diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-04-06 18:28:44 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-04-06 18:28:44 -0300 |
commit | c8e5bd503521270695f4ed32cc32ca40937784e3 (patch) | |
tree | 9b8ed036ef6ae7f1d53c8df66ea071b09a51a14a /manifests/nas/share.pp | |
parent | 6c82a3d1f3b2cb4dd66ded04a91afc303404a29c (diff) | |
download | puppet-nodo-c8e5bd503521270695f4ed32cc32ca40937784e3.tar.gz puppet-nodo-c8e5bd503521270695f4ed32cc32ca40937784e3.tar.bz2 |
Adds owner, group and mode to nodo::nas::share
Diffstat (limited to 'manifests/nas/share.pp')
-rw-r--r-- | manifests/nas/share.pp | 15 |
1 files changed, 15 insertions, 0 deletions
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, + }, } } } |