aboutsummaryrefslogtreecommitdiff
path: root/manifests/personal.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-13 13:29:22 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-13 13:29:22 -0300
commit4d249d029f1f354e66140a0d6a9ee2221845ace0 (patch)
tree87e8f945c597236e541af5a1a25ccd8925701bf2 /manifests/personal.pp
parentfdb2c69d1ca8c019bb655d88468340a7fd5c1f34 (diff)
downloadpuppet-nodo-4d249d029f1f354e66140a0d6a9ee2221845ace0.tar.gz
puppet-nodo-4d249d029f1f354e66140a0d6a9ee2221845ace0.tar.bz2
Personal is a base class
Diffstat (limited to 'manifests/personal.pp')
-rw-r--r--manifests/personal.pp43
1 files changed, 43 insertions, 0 deletions
diff --git a/manifests/personal.pp b/manifests/personal.pp
new file mode 100644
index 0000000..b07304f
--- /dev/null
+++ b/manifests/personal.pp
@@ -0,0 +1,43 @@
+# Personal computer
+class nodo::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,
+ }
+}