[Mageia-sysadm] [489] - create the certificate ( self signed ) when ssl is enabled

root at mageia.org root at mageia.org
Tue Nov 30 20:21:50 CET 2010


Revision: 489
Author:   misc
Date:     2010-11-30 20:21:49 +0100 (Tue, 30 Nov 2010)
Log Message:
-----------
- create the certificate ( self signed ) when ssl is enabled

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

Modified: puppet/modules/apache/manifests/init.pp
===================================================================
--- puppet/modules/apache/manifests/init.pp	2010-11-30 19:21:48 UTC (rev 488)
+++ puppet/modules/apache/manifests/init.pp	2010-11-30 19:21:49 UTC (rev 489)
@@ -97,6 +97,13 @@
 
         include apache::mod_fastcgi 
 
+        if $use_ssl {
+            include apache::mod_ssl
+            openssl::self_signed_cert{ "$name":
+                directory => "/etc/ssl/apache/"
+            }
+        }
+
         file { "$name.conf":
             path => "/etc/httpd/conf/vhosts.d/$name.conf",
             ensure => "present",
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101130/ae665815/attachment.html>


More information about the Mageia-sysadm mailing list