116 |
} |
} |
117 |
} |
} |
118 |
|
|
119 |
define vhost_django_app($module = false, $module_path = false) { |
define vhost_django_app($module = false, $module_path = false, $use_ssl = false) { |
120 |
include apache::mod_wsgi |
include apache::mod_wsgi |
121 |
|
|
122 |
|
if $use_ssl { |
123 |
|
include apache::mod_ssl |
124 |
|
openssl::self_signed_cert{ "$name": |
125 |
|
directory => "/etc/ssl/apache/", |
126 |
|
before => File["$name.conf"], |
127 |
|
} |
128 |
|
} |
129 |
|
|
130 |
# module is a ruby reserved keyword, cannot be used in templates |
# module is a ruby reserved keyword, cannot be used in templates |
131 |
$django_module = $module |
$django_module = $module |
132 |
file { "$name.conf": |
file { "$name.conf": |