diff options
author | Michael Scherer <misc@mageia.org> | 2010-11-30 19:21:49 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-11-30 19:21:49 +0000 |
commit | 14c3def11a49c8c1407809d580ae046b5fa0c88f (patch) | |
tree | 548b1fb968c54b68c012aaa3d39c3778e7e1b216 | |
parent | bcad30d0b9b46d7be743879a247b968844032cfd (diff) | |
download | puppet-14c3def11a49c8c1407809d580ae046b5fa0c88f.tar puppet-14c3def11a49c8c1407809d580ae046b5fa0c88f.tar.gz puppet-14c3def11a49c8c1407809d580ae046b5fa0c88f.tar.bz2 puppet-14c3def11a49c8c1407809d580ae046b5fa0c88f.tar.xz puppet-14c3def11a49c8c1407809d580ae046b5fa0c88f.zip |
- create the certificate ( self signed ) when ssl is enabled
-rw-r--r-- | modules/apache/manifests/init.pp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp index 81e9f47f..6c775954 100644 --- a/modules/apache/manifests/init.pp +++ b/modules/apache/manifests/init.pp @@ -97,6 +97,13 @@ class apache { 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", |