diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-04-18 14:45:06 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-04-18 14:45:06 -0300 |
commit | b94f82be187be2d6591371d07c0392b1ed0ce1f2 (patch) | |
tree | 7b436ae00dae8b9974e04c4ab2674841655f55b2 /manifests/subsystem/media | |
parent | c283672105fedeaa2e9a18def51e362293aa6cae (diff) | |
download | puppet-nodo-b94f82be187be2d6591371d07c0392b1ed0ce1f2.tar.gz puppet-nodo-b94f82be187be2d6591371d07c0392b1ed0ce1f2.tar.bz2 |
Manage code and load folders at nodo::subsystem::media::folders
Diffstat (limited to 'manifests/subsystem/media')
-rw-r--r-- | manifests/subsystem/media/folders.pp | 15 |
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", |