From 8b552f1fec441b0591d3a61fb4e296b6eb90ceb3 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 17 Nov 2010 15:45:22 +0000 Subject: - better use heritance --- modules/pam/manifests/init.pp | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'modules/pam') diff --git a/modules/pam/manifests/init.pp b/modules/pam/manifests/init.pp index 4c68a80c..07f2214a 100644 --- a/modules/pam/manifests/init.pp +++ b/modules/pam/manifests/init.pp @@ -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": } } -- cgit v1.2.1