aboutsummaryrefslogtreecommitdiff
path: root/manifests/personal.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/personal.pp')
-rw-r--r--manifests/personal.pp42
1 files changed, 2 insertions, 40 deletions
diff --git a/manifests/personal.pp b/manifests/personal.pp
index 8a7cbe2..7ab1662 100644
--- a/manifests/personal.pp
+++ b/manifests/personal.pp
@@ -20,46 +20,8 @@ class nodo::personal {
use_nagios => hiera('nodo::personal::use_nagios', false),
}
- # Removable media folder
- file { [ "/media/usb", "/media/cdrom", "/media/tablet", "/media/phone" ]:
- ensure => directory,
- mode => 0755,
- }
-
- # Mountpoint for encrypted home folders
- file { [ '/mnt/crypt/', '/mnt/crypt/home' ]:
- ensure => directory,
- }
-
- # 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,
- mode => 0755,
- }
-
- # Link to the media cache, useful to have unique remotes
- # for git-annex in removable media
- file { "/var/cache/${::hostname}/media":
- ensure => "/var/cache/media",
- }
+ # Media folders
+ class { 'media::folders': }
# Development
file { [ "/var/cache/vagrant", "/var/cache/virtualbox" ]: