From 53d2f6ed72a3550804fb83f487da7b03f0146756 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 22 Feb 2013 17:51:20 -0300 Subject: Data folder is a cache at nodo::personal --- manifests/personal.pp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'manifests') 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, -- cgit v1.2.3