aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-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,