aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/pam.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystem/pam.pp')
-rw-r--r--manifests/subsystem/pam.pp40
1 files changed, 40 insertions, 0 deletions
diff --git a/manifests/subsystem/pam.pp b/manifests/subsystem/pam.pp
new file mode 100644
index 0000000..7186d0b
--- /dev/null
+++ b/manifests/subsystem/pam.pp
@@ -0,0 +1,40 @@
+class nodo::subsystem::pam(
+ $enable = hiera('nodo::pam::enable', false)
+) {
+ if $enable != false {
+
+ # Squeeze only
+ if $::lsbdistcodename == 'squeeze' {
+ # pam - login
+ file { "/etc/pam.d/login":
+ source => [ "puppet:///modules/nodo/etc/pam.d/login.${::lsbdistcodename}",
+ "puppet:///modules/nodo/etc/pam.d/login",
+ ],
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ }
+
+ # pam - gdm
+ file { "/etc/pam.d/gdm":
+ source => "puppet:///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:///modules/site_nodo/security/pam_mount.conf.xml.${::lsbdistcodename}",
+ "puppet:///modules/site_nodo/security/pam_mount.conf.xml",
+ ],
+ }
+ }
+}