diff options
-rw-r--r-- | manifests/nas.pp | 4 | ||||
-rw-r--r-- | manifests/personal.pp | 4 | ||||
-rw-r--r-- | manifests/subsystems/media.pp | 6 |
3 files changed, 10 insertions, 4 deletions
diff --git a/manifests/nas.pp b/manifests/nas.pp index 56e5944..84352ab 100644 --- a/manifests/nas.pp +++ b/manifests/nas.pp @@ -221,8 +221,8 @@ class nodo::nas { # Media folders # - # Main class - class { 'media::folders': } + # Main classes + class { [ 'media::folders', 'media::groups' ]: } # Make sure basic media exist, no matter if there is an external disk attached $cache = hiera('nodo::media::folders', '') diff --git a/manifests/personal.pp b/manifests/personal.pp index f647778..3718cb5 100644 --- a/manifests/personal.pp +++ b/manifests/personal.pp @@ -20,8 +20,8 @@ class nodo::personal { use_nagios => hiera('nodo::personal::use_nagios', false), } - # Media folders - class { 'media::folders': } + # Media folders and groups + class { [ 'media::folders', 'media::groups' ]: } # Mountpoint for encrypted home folders file { [ '/mnt/crypt/', '/mnt/crypt/home' ]: diff --git a/manifests/subsystems/media.pp b/manifests/subsystems/media.pp index 0e808c9..cbe89b9 100644 --- a/manifests/subsystems/media.pp +++ b/manifests/subsystems/media.pp @@ -30,3 +30,9 @@ class media::folders( ensure => "/var/cache/media", } } + +class media::groups { + group { 'incoming': + ensure => 'present', + } +} |