aboutsummaryrefslogtreecommitdiffstats
path: root/modules/pam/manifests
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-11-17 15:35:10 +0000
committerMichael Scherer <misc@mageia.org>2010-11-17 15:35:10 +0000
commitd3918db07bb550d340c95b6ab495a346733c9c25 (patch)
treef8f8c07761af82917cad825ee895183e4bc90eda /modules/pam/manifests
parente3241bb3df3a21e26c077cdcbb559e038fd7388f (diff)
downloadpuppet-d3918db07bb550d340c95b6ab495a346733c9c25.tar
puppet-d3918db07bb550d340c95b6ab495a346733c9c25.tar.gz
puppet-d3918db07bb550d340c95b6ab495a346733c9c25.tar.bz2
puppet-d3918db07bb550d340c95b6ab495a346733c9c25.tar.xz
puppet-d3918db07bb550d340c95b6ab495a346733c9c25.zip
- add a proto module for taking care of pam ( need pam_ldap, etc support, and a review of the pam config file too )
Diffstat (limited to 'modules/pam/manifests')
-rw-r--r--modules/pam/manifests/init.pp27
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/pam/manifests/init.pp b/modules/pam/manifests/init.pp
new file mode 100644
index 00000000..4c68a80c
--- /dev/null
+++ b/modules/pam/manifests/init.pp
@@ -0,0 +1,27 @@
+class pam {
+
+ 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")
+ }
+
+ # for server where only admin can connect
+ class admin_access {
+ $access_class = "admin"
+ file { "system-auth": }
+ }
+
+ # for server where people can connect with ssh ( git, svn )
+ class commiters_access {
+ $access_class = "commiters"
+ file { "system-auth": }
+ }
+}