aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-03-25 12:20:35 +0000
committerMichael Scherer <misc@mageia.org>2012-03-25 12:20:35 +0000
commitfe7c84751929b955d65e7f607edc36f01d9d1fc4 (patch)
tree91e5c5c6182b52a08ad2cc26bf6a43b732c6c773 /modules/apache
parent347cdaaa92ae792de39cdf2692c1564e412f698b (diff)
downloadpuppet-fe7c84751929b955d65e7f607edc36f01d9d1fc4.tar
puppet-fe7c84751929b955d65e7f607edc36f01d9d1fc4.tar.gz
puppet-fe7c84751929b955d65e7f607edc36f01d9d1fc4.tar.bz2
puppet-fe7c84751929b955d65e7f607edc36f01d9d1fc4.tar.xz
puppet-fe7c84751929b955d65e7f607edc36f01d9d1fc4.zip
split mod_wsgi in a separate file
Diffstat (limited to 'modules/apache')
-rw-r--r--modules/apache/manifests/init.pp18
-rw-r--r--modules/apache/manifests/mod/wsgi.pp12
2 files changed, 15 insertions, 15 deletions
diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp
index a3592c65..87a96f58 100644
--- a/modules/apache/manifests/init.pp
+++ b/modules/apache/manifests/init.pp
@@ -35,19 +35,7 @@ class apache {
}
}
- class mod_wsgi inherits base {
- package { "apache-mod_wsgi": }
-
- file { "/usr/local/lib/wsgi":
- ensure => directory,
- }
-
- apache::config { "/etc/httpd/conf.d/mod_wsgi.conf":
- content => template('apache/mod_wsgi.conf'),
- }
- }
-
-
+
define vhost_base($content = '',
$location = '/dev/null',
$use_ssl = false,
@@ -116,7 +104,7 @@ class apache {
}
define vhost_django_app($module = false, $module_path = false, $use_ssl = false, $aliases= {}) {
- include apache::mod_wsgi
+ include apache::mod::wsgi
vhost_base { $name:
use_ssl => $use_ssl,
content => template("apache/vhost_django_app.conf"),
@@ -134,7 +122,7 @@ class apache {
}
define vhost_wsgi($wsgi_path, $aliases = {}, $server_aliases = []) {
- include apache::mod_wsgi
+ include apache::mod::wsgi
vhost_base { $name:
aliases => $aliases,
server_aliases => $server_aliases,
diff --git a/modules/apache/manifests/mod/wsgi.pp b/modules/apache/manifests/mod/wsgi.pp
new file mode 100644
index 00000000..416adb34
--- /dev/null
+++ b/modules/apache/manifests/mod/wsgi.pp
@@ -0,0 +1,12 @@
+class apache::mod::wsgi {
+ include apache::base
+ package { 'apache-mod_wsgi': }
+
+ file { '/usr/local/lib/wsgi':
+ ensure => directory,
+ }
+
+ apache::config { '/etc/httpd/conf.d/mod_wsgi.conf':
+ content => template('apache/mod_wsgi.conf'),
+ }
+}