aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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