diff options
Diffstat (limited to 'manifests/nas/share.pp')
-rw-r--r-- | manifests/nas/share.pp | 5 |
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 ? { |