aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/pam.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-12 17:09:03 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-12 17:09:03 -0300
commitfe1c86b8f938283e9dd8196a8b11a9648f4b49e6 (patch)
treec2d999eca03862a3e4af57e0885397adf6bbc6ec /manifests/subsystem/pam.pp
parentec5c750d12bdc7948bb3c04f0c72817718a0bf47 (diff)
downloadpuppet-nodo-fe1c86b8f938283e9dd8196a8b11a9648f4b49e6.tar.gz
puppet-nodo-fe1c86b8f938283e9dd8196a8b11a9648f4b49e6.tar.bz2
Major refactor
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",
+ ],
+ }
+ }
+}