aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/media.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystem/media.pp')
-rw-r--r--manifests/subsystem/media.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/manifests/subsystem/media.pp b/manifests/subsystem/media.pp
new file mode 100644
index 0000000..b67ddbd
--- /dev/null
+++ b/manifests/subsystem/media.pp
@@ -0,0 +1,13 @@
+class nodo::subsystem::media {
+ # Main classes
+ class { [ 'nodo::subsystem::media::folders', 'nodo::subsystem::media::groups' ]: }
+
+ # Make sure basic media exist, no matter if there is an external disk attached
+ $cache = hiera('nodo::media::folders', '')
+
+ if $cache != '' {
+ file { "${cache}":
+ ensure => directory,
+ }
+ }
+}