aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-05-31 11:40:24 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-05-31 11:40:24 -0300
commita90ef81bc6d1c8dd0446c218e08d64e3bf6a9062 (patch)
tree1f20d69acdde2ff4fb52b685a696ed9c84e41915 /manifests/subsystem
parent1bfe789032738772e2e8487151d23753420de34f (diff)
downloadpuppet-nodo-a90ef81bc6d1c8dd0446c218e08d64e3bf6a9062.tar.gz
puppet-nodo-a90ef81bc6d1c8dd0446c218e08d64e3bf6a9062.tar.bz2
Introducing owner and group parameters at nodo::subsystem::media::folders
Diffstat (limited to 'manifests/subsystem')
-rw-r--r--manifests/subsystem/media/folders.pp12
1 files changed, 11 insertions, 1 deletions
diff --git a/manifests/subsystem/media/folders.pp b/manifests/subsystem/media/folders.pp
index 2fcc637..3f812e7 100644
--- a/manifests/subsystem/media/folders.pp
+++ b/manifests/subsystem/media/folders.pp
@@ -1,5 +1,7 @@
class nodo::subsystem::media::folders(
- $cache = hiera('nodo::subsystem::media::folders::cache', directory)
+ $cache = hiera('nodo::subsystem::media::folders::cache', directory),
+ $owner = hiera('nodo::subsystem::media::folders::owner', false),
+ $group = hiera('nodo::subsystem::media::folders::group', false)
) {
# Removable media folder
file { [ "/media/usb", "/media/cdrom", "/media/tablet", "/media/phone" ]:
@@ -11,6 +13,14 @@ class nodo::subsystem::media::folders(
file { "/var/cache/media":
ensure => $cache,
mode => 0755,
+ owner => $owner ? {
+ false => undef,
+ default => $owner,
+ },
+ group => $group ? {
+ false => undef,
+ default => $group,
+ },
}
# Data folder is a cache