diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-08-23 16:47:12 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-08-23 16:47:12 -0300 |
commit | 11e260d19bdd3ece0a5b80c7f5fcb048211b1d7b (patch) | |
tree | bb498efccd932ab188e2dcb513c4f627d777dd38 /manifests/nas | |
parent | 5d0ae44bc45d00e351204bbd7f2a95dfaec1e0ea (diff) | |
download | puppet-nodo-11e260d19bdd3ece0a5b80c7f5fcb048211b1d7b.tar.gz puppet-nodo-11e260d19bdd3ece0a5b80c7f5fcb048211b1d7b.tar.bz2 |
Adding manage_folder parameter into nodo::nas::share
Diffstat (limited to 'manifests/nas')
-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 ? { |