aboutsummaryrefslogtreecommitdiff
path: root/manifests/nas/share.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-08-23 16:47:12 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-08-23 16:47:12 -0300
commit11e260d19bdd3ece0a5b80c7f5fcb048211b1d7b (patch)
treebb498efccd932ab188e2dcb513c4f627d777dd38 /manifests/nas/share.pp
parent5d0ae44bc45d00e351204bbd7f2a95dfaec1e0ea (diff)
downloadpuppet-nodo-11e260d19bdd3ece0a5b80c7f5fcb048211b1d7b.tar.gz
puppet-nodo-11e260d19bdd3ece0a5b80c7f5fcb048211b1d7b.tar.bz2
Adding manage_folder parameter into nodo::nas::share
Diffstat (limited to 'manifests/nas/share.pp')
-rw-r--r--manifests/nas/share.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/nas/share.pp b/manifests/nas/share.pp
index 4472286..705e013 100644
--- a/manifests/nas/share.pp
+++ b/manifests/nas/share.pp
@@ -13,7 +13,8 @@ define nodo::nas::share(
$samba_force_group = '',
$samba_read_only = '',
$samba_create_mask = '0644',
- $samba_directory_mask = '0755'
+ $samba_directory_mask = '0755',
+ $manage_folder = true
) {
# DLNA share
@@ -81,7 +82,7 @@ define nodo::nas::share(
# Make sure basic media exist, no matter which disk is attached
$cache = hiera('nodo::subsystem::media::folders::base', '/var/cache/media')
- if $cache != '' {
+ if $cache != '' and $manage_folder != false {
file { [ "${cache}/${name}" ]:
ensure => directory,
owner => $owner ? {