aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-02-22 17:51:20 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-02-22 17:51:20 -0300
commit53d2f6ed72a3550804fb83f487da7b03f0146756 (patch)
tree15f6d5c349dc125d91ddb273a4fd9d97fc47a832
parentbc7b14a1af8b1ab41f58134a24d38d15a039141a (diff)
downloadpuppet-nodo-53d2f6ed72a3550804fb83f487da7b03f0146756.tar.gz
puppet-nodo-53d2f6ed72a3550804fb83f487da7b03f0146756.tar.bz2
Data folder is a cache at nodo::personal
-rw-r--r--manifests/personal.pp18
1 files changed, 12 insertions, 6 deletions
diff --git a/manifests/personal.pp b/manifests/personal.pp
index c27475c..05e66d6 100644
--- a/manifests/personal.pp
+++ b/manifests/personal.pp
@@ -30,18 +30,24 @@ class nodo::personal {
ensure => directory,
}
- # Misc user data
- file { [ "/var/data", "/var/data/code", "/var/data/crypt", "/var/data/crypt/home", "/var/data/load" ]:
- ensure => directory,
- mode => 0755,
- }
-
# Media cache
file { "/var/cache/media":
ensure => directory,
mode => 0755,
}
+ # Data folder is a cache
+ file { "/var/data":
+ ensure => "/var/cache/media",
+ }
+
+ # Misc user data
+ file { [ "/var/data/code", "/var/data/crypt", "/var/data/crypt/home", "/var/data/load" ]:
+ ensure => directory,
+ mode => 0755,
+ require => File['/var/cache/media'],
+ }
+
# Hostname cache for general use
file { "/var/cache/${::hostname}":
ensure => directory,