Modified: puppet/modules/pam/manifests/init.pp =================================================================== --- puppet/modules/pam/manifests/init.pp 2010-11-17 15:35:10 UTC (rev 265) +++ puppet/modules/pam/manifests/init.pp 2010-11-17 15:45:22 UTC (rev 266) @@ -1,26 +1,28 @@ class pam { - package { ["pam_ldap","nss_ldap", "pam_mkhomedir"]: - ensure => installed, - } + class base { + package { ["pam_ldap","nss_ldap", "pam_mkhomedir"]: + ensure => installed, + } - - file { "system-auth": - path => "/etc/pam.d/system-auth", - owner => root, - group => root, - mode => 644, - content => template("openldap/system-auth") - } + file { "system-auth": + path => "/etc/pam.d/system-auth", + owner => root, + group => root, + mode => 644, + content => template("openldap/system-auth") + } + } # for server where only admin can connect - class admin_access { + class admin_access inherits base { $access_class = "admin" + # not sure if this line is needed anymore, wil check later file { "system-auth": } } # for server where people can connect with ssh ( git, svn ) - class commiters_access { + class commiters_access inherits base { $access_class = "commiters" file { "system-auth": } }