[Mageia-sysadm] [344] - create a self signed certificate if not present ( for test vm )
root at mageia.org
root at mageia.org
Sun Nov 21 17:45:39 CET 2010
Revision: 344
Author: misc
Date: 2010-11-21 17:45:39 +0100 (Sun, 21 Nov 2010)
Log Message:
-----------
- create a self signed certificate if not present ( for test vm )
Modified Paths:
--------------
puppet/modules/openldap/manifests/init.pp
Modified: puppet/modules/openldap/manifests/init.pp
===================================================================
--- puppet/modules/openldap/manifests/init.pp 2010-11-20 21:46:54 UTC (rev 343)
+++ puppet/modules/openldap/manifests/init.pp 2010-11-21 16:45:39 UTC (rev 344)
@@ -9,6 +9,19 @@
subscribe => [ Package['openldap-servers']],
path => "/etc/init.d/ldap"
}
+
+ file {"/etc/ssl/openldap/":
+ ensure => directory,
+ owner => root,
+ group => root,
+ 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"
+ }
}
# /etc/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101121/1e3baaba/attachment.html>
More information about the Mageia-sysadm
mailing list