aboutsummaryrefslogtreecommitdiff
path: root/manifests/desktop.pp
blob: 686801bcb3b97174b3b44c89b74c7cf200dfb309 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
class nodo::desktop inherits nodo::physical {
  include utils::desktop

  # fstab
  file { "/etc/fstab":
    source  => "puppet://$desktop/modules/nodo/etc/fstab/desktop",
    owner   => "root",
    group   => "root",
    mode    => 0644,
    ensure  => present,
  }

  # crypttab
  file { "/etc/crypttab":
    source  => "puppet://$desktop/modules/nodo/etc/crypttab/desktop",
    owner   => "root",
    group   => "root",
    mode    => 0644,
    ensure  => present,
  }

  # data
  file { "/var/data":
    ensure => directory,
    mode   => 0755,
  }

  # pam - login
  file { "/etc/pam.d/login":
    source  => "puppet://$desktop/modules/nodo/etc/pam.d/login",
    owner   => "root",
    group   => "root",
    mode    => 0644,
    ensure  => present,
  }

  # pam - gdm
  file { "/etc/pam.d/gdm":
    source  => "puppet://$desktop/modules/nodo/etc/pam.d/gdm",
    owner   => "root",
    group   => "root",
    mode    => 0644,
    ensure  => present,
  }

  # pam - mountpoints
  file { "/etc/security/pam_mount.conf.xml":
    ensure  => present,
    owner   => root,
    group   => root,
    mode    => 0644,
    source  => "puppet://$server/files/etc/security/pam_mount.conf.xml",
  }

  # xorg
  file { "/etc/X11/xorg.conf":
    ensure  => present,
    owner   => root,
    group   => root,
    mode    => 0644,
    source  => "puppet://$server/files/etc/X11/xorg.conf/$hostname",
  }
}