aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-04-18 14:45:06 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-04-18 14:45:06 -0300
commitb94f82be187be2d6591371d07c0392b1ed0ce1f2 (patch)
tree7b436ae00dae8b9974e04c4ab2674841655f55b2 /manifests/subsystem
parentc283672105fedeaa2e9a18def51e362293aa6cae (diff)
downloadpuppet-nodo-b94f82be187be2d6591371d07c0392b1ed0ce1f2.tar.gz
puppet-nodo-b94f82be187be2d6591371d07c0392b1ed0ce1f2.tar.bz2
Manage code and load folders at nodo::subsystem::media::folders
Diffstat (limited to 'manifests/subsystem')
-rw-r--r--manifests/subsystem/media/folders.pp15
1 files changed, 15 insertions, 0 deletions
diff --git a/manifests/subsystem/media/folders.pp b/manifests/subsystem/media/folders.pp
index 11d2f26..243c245 100644
--- a/manifests/subsystem/media/folders.pp
+++ b/manifests/subsystem/media/folders.pp
@@ -24,6 +24,21 @@ class nodo::subsystem::media::folders(
},
}
+ # Code and load folders
+ file { [ "${base}/code", "${base}/load" ]:
+ ensure => directory,
+ mode => 0755,
+ owner => $owner ? {
+ false => undef,
+ default => $owner,
+ },
+ group => $group ? {
+ false => undef,
+ default => $group,
+ },
+ require => File["$base"],
+ }
+
# Data folder is a cache
file { "/var/data":
ensure => "$base",