[Mageia-sysadm] [347] - use new class for openssl certs

root at mageia.org root at mageia.org
Sun Nov 21 18:22:34 CET 2010


Revision: 347
Author:   misc
Date:     2010-11-21 18:22:33 +0100 (Sun, 21 Nov 2010)
Log Message:
-----------
- use new class for openssl certs

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

Modified: puppet/modules/openldap/manifests/init.pp
===================================================================
--- puppet/modules/openldap/manifests/init.pp	2010-11-21 17:20:36 UTC (rev 346)
+++ puppet/modules/openldap/manifests/init.pp	2010-11-21 17:22:33 UTC (rev 347)
@@ -17,10 +17,8 @@
             mode => 755,
         }
 
-        $pem_file = 'ldap.pem'
-        exec { "openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout $pem_file -out $pem_file -subj  '/CN=ldap.$domain'":
-            cwd => "/etc/ssl/openldap/",
-            creates => "/etc/ssl/openldap/$pem_file"
+        openssl::self_signed_cert{ 'ldap':
+            directory => "/etc/ssl/openldap/"
         }
     }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101121/50216f7e/attachment.html>


More information about the Mageia-sysadm mailing list