aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/manifests/init.pp
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-12-15 03:11:52 +0000
committerMichael Scherer <misc@mageia.org>2010-12-15 03:11:52 +0000
commit6200ca643d340467412531b0419c80e7c52535db (patch)
treeb9ddd945204666a4a29e3d819c9a8a065a020764 /modules/apache/manifests/init.pp
parent5f145dd06ad0ad325e24d3d60e11b195ffeec641 (diff)
downloadpuppet-6200ca643d340467412531b0419c80e7c52535db.tar
puppet-6200ca643d340467412531b0419c80e7c52535db.tar.gz
puppet-6200ca643d340467412531b0419c80e7c52535db.tar.bz2
puppet-6200ca643d340467412531b0419c80e7c52535db.tar.xz
puppet-6200ca643d340467412531b0419c80e7c52535db.zip
add ssl support to django deployment class
Diffstat (limited to 'modules/apache/manifests/init.pp')
-rw-r--r--modules/apache/manifests/init.pp10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp
index 09cba687..407e2ca2 100644
--- a/modules/apache/manifests/init.pp
+++ b/modules/apache/manifests/init.pp
@@ -116,9 +116,17 @@ class apache {
}
}
- define vhost_django_app($module = false, $module_path = false) {
+ define vhost_django_app($module = false, $module_path = false, $use_ssl = false) {
include apache::mod_wsgi
+ if $use_ssl {
+ include apache::mod_ssl
+ openssl::self_signed_cert{ "$name":
+ directory => "/etc/ssl/apache/",
+ before => File["$name.conf"],
+ }
+ }
+
# module is a ruby reserved keyword, cannot be used in templates
$django_module = $module
file { "$name.conf":