From 4d457240847480821a4e86eac09fed7c5983b262 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sun, 25 Mar 2012 12:47:29 +0000 Subject: split vhost_wsgi in a separate file --- modules/apache/manifests/init.pp | 9 --------- modules/apache/manifests/vhost/wsgi.pp | 10 ++++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 modules/apache/manifests/vhost/wsgi.pp diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp index 7002aa7d..d97345e7 100644 --- a/modules/apache/manifests/init.pp +++ b/modules/apache/manifests/init.pp @@ -27,15 +27,6 @@ class apache { } } - define vhost_wsgi($wsgi_path, $aliases = {}, $server_aliases = []) { - include apache::mod::wsgi - apache::vhost::base { $name: - aliases => $aliases, - server_aliases => $server_aliases, - content => template("apache/vhost_wsgi.conf"), - } - } - define vhost_other_app($vhost_file) { include apache::base apache::config { "/etc/httpd/conf/vhosts.d/$name.conf": diff --git a/modules/apache/manifests/vhost/wsgi.pp b/modules/apache/manifests/vhost/wsgi.pp new file mode 100644 index 00000000..291c6d71 --- /dev/null +++ b/modules/apache/manifests/vhost/wsgi.pp @@ -0,0 +1,10 @@ +define apache::vhost::wsgi ($wsgi_path, + $aliases = {}, + $server_aliases = []) { + include apache::mod::wsgi + apache::vhost::base { $name: + aliases => $aliases, + server_aliases => $server_aliases, + content => template('apache/vhost_wsgi.conf'), + } +} -- cgit v1.2.1