aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-05 20:08:28 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-05 20:08:28 -0300
commitfecd56b6d3bf600a70f49d9b9606a09cff9449d4 (patch)
tree4516b1bef8975e136d617a05800d99ea560d1f8b
parentc86b2c8ad212f87e816b0c8bcf6209860a4a5299 (diff)
downloadpuppet-nodo-fecd56b6d3bf600a70f49d9b9606a09cff9449d4.tar.gz
puppet-nodo-fecd56b6d3bf600a70f49d9b9606a09cff9449d4.tar.bz2
Adding media::groups class
-rw-r--r--manifests/nas.pp4
-rw-r--r--manifests/personal.pp4
-rw-r--r--manifests/subsystems/media.pp6
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',
+ }
+}