aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/media.pp
blob: b67ddbdf30a1266f25b4175617abfb7c89110291 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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,
    }
  }
}