aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/media.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-05-13 21:44:51 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-05-13 21:44:51 -0300
commit5d6c2be119c7bbfbf8bf6d84aa523929afe0f1ad (patch)
tree3d176339b1b767a66f758f870c87ab6e32413431 /manifests/subsystem/media.pp
parent8d2a62d157f9c12e3c3becdcfbff0ee96cf23930 (diff)
downloadpuppet-nodo-5d6c2be119c7bbfbf8bf6d84aa523929afe0f1ad.tar.gz
puppet-nodo-5d6c2be119c7bbfbf8bf6d84aa523929afe0f1ad.tar.bz2
NAS enhancements
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,
+ }
+ }
+}