From 1c1c6ca9b96dd5a7b438baa47e36bc8100d73f8d Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 24 Feb 2011 14:33:39 +0000 Subject: let a django application declare aliases --- modules/apache/manifests/init.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/apache') diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp index 5287eb71..58fd0b5d 100644 --- a/modules/apache/manifests/init.pp +++ b/modules/apache/manifests/init.pp @@ -179,11 +179,12 @@ class apache { } } - define vhost_django_app($module = false, $module_path = false, $use_ssl = false) { + define vhost_django_app($module = false, $module_path = false, $use_ssl = false, $aliases= {}) { include apache::mod_wsgi vhost_base { $name: use_ssl => $use_ssl, - content => template("apache/vhost_django_app.conf") + content => template("apache/vhost_django_app.conf"), + aliases => $aliases, } # module is a ruby reserved keyword, cannot be used in templates -- cgit v1.2.1