From 99ae56b85ea726eff3d4978097bf850d7a561763 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 18 May 2010 23:29:31 -0300 Subject: Introducing $pam --- manifests/subsystems/pam.pp | 48 +++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 23 deletions(-) (limited to 'manifests/subsystems') diff --git a/manifests/subsystems/pam.pp b/manifests/subsystems/pam.pp index 3358784..550e101 100644 --- a/manifests/subsystems/pam.pp +++ b/manifests/subsystems/pam.pp @@ -1,28 +1,30 @@ class pam { - # pam - login - file { "/etc/pam.d/login": - source => "puppet://$server/modules/nodo/etc/pam.d/login", - owner => "root", - group => "root", - mode => 0644, - ensure => present, - } + if $pam != false { + # pam - login + file { "/etc/pam.d/login": + source => "puppet://$server/modules/nodo/etc/pam.d/login", + owner => "root", + group => "root", + mode => 0644, + ensure => present, + } - # pam - gdm - file { "/etc/pam.d/gdm": - source => "puppet://$server/modules/nodo/etc/pam.d/gdm", - owner => "root", - group => "root", - mode => 0644, - ensure => present, - } + # pam - gdm + file { "/etc/pam.d/gdm": + source => "puppet://$server/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", + # 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", + } } } -- cgit v1.2.3