[Mageia-sysadm] [266] - better use heritance

root at mageia.org root at mageia.org
Wed Nov 17 16:45:23 CET 2010


Revision: 266
Author:   misc
Date:     2010-11-17 16:45:22 +0100 (Wed, 17 Nov 2010)
Log Message:
-----------
- better use heritance

Modified Paths:
--------------
    puppet/modules/pam/manifests/init.pp

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": }
   }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101117/59a666cc/attachment.html>


More information about the Mageia-sysadm mailing list