]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Data folder is a cache at nodo::personal
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 22 Feb 2013 20:51:20 +0000 (17:51 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 22 Feb 2013 20:51:20 +0000 (17:51 -0300)
manifests/personal.pp

index c27475c0774c84c79d0b3675edfe91d7fbcfd7bb..05e66d65e04ee979fa8f13ad1394d215c36f3058 100644 (file)
@@ -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,