diff options
Diffstat (limited to 'manifests/role/personal.pp')
-rw-r--r-- | manifests/role/personal.pp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/manifests/role/personal.pp b/manifests/role/personal.pp new file mode 100644 index 0000000..f7afdc0 --- /dev/null +++ b/manifests/role/personal.pp @@ -0,0 +1,43 @@ +# Personal computer +class nodo::role::personal { + include nodo::physical + include nodo::utils::personal + include autossh + + class { 'nodo::subsystem::pam': } + class { 'nodo::subsystem::xorg': } + + if $::lsbdistcodename == 'squeeze' { + include nodo::subsystem::gdm + } + else { + include nodo::subsystem::gdm3 + } + + # Monitoring + class { 'monitor': + type => 'personal', + use_nagios => hiera('nodo::personal::use_nagios', false), + } + + # Media folders and groups + class { [ 'nodo::subsystem::media::folders', 'nodo::subsystem::media::groups' ]: } + + # Mountpoint for encrypted home folders + file { [ '/mnt/crypt/', '/mnt/crypt/home' ]: + ensure => directory, + } + + # 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'], + } + + # Development + file { [ "/var/cache/vagrant", "/var/cache/virtualbox" ]: + ensure => directory, + mode => 0755, + } +} |