diff options
author | Michael Scherer <misc@mageia.org> | 2010-11-17 15:45:22 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-11-17 15:45:22 +0000 |
commit | 8b552f1fec441b0591d3a61fb4e296b6eb90ceb3 (patch) | |
tree | b9571c71b7da754675bb876deee22ebff6281fe3 /modules/pam | |
parent | d3918db07bb550d340c95b6ab495a346733c9c25 (diff) | |
download | puppet-8b552f1fec441b0591d3a61fb4e296b6eb90ceb3.tar puppet-8b552f1fec441b0591d3a61fb4e296b6eb90ceb3.tar.gz puppet-8b552f1fec441b0591d3a61fb4e296b6eb90ceb3.tar.bz2 puppet-8b552f1fec441b0591d3a61fb4e296b6eb90ceb3.tar.xz puppet-8b552f1fec441b0591d3a61fb4e296b6eb90ceb3.zip |
- better use heritance
Diffstat (limited to 'modules/pam')
-rw-r--r-- | modules/pam/manifests/init.pp | 28 |
1 files changed, 15 insertions, 13 deletions
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": } } |