From 182cac02836d68fe1df527c7c80aa06c2e91be0f Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 17 Jan 2011 15:24:07 +0000 Subject: new vhost_wsgi type, for viewvc support --- modules/apache/manifests/init.pp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'modules/apache/manifests') diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp index 03eee275..e21febcf 100644 --- a/modules/apache/manifests/init.pp +++ b/modules/apache/manifests/init.pp @@ -157,6 +157,19 @@ class apache { } } + define vhost_wsgi($wsgi_path) { + include apache::mod_wsgi + file { "$name.conf": + path => "/etc/httpd/conf/vhosts.d/$name.conf", + ensure => "present", + owner => root, + group => root, + mode => 644, + notify => Service['apache'], + content => template("apache/vhost_wsgi.conf") + } + } + define vhost_other_app($vhost_file) { include apache::base file { "$name.conf": -- cgit v1.2.1