1 class apache::mod::wsgi (
2 $wsgi_socket_prefix = $::apache::params::wsgi_socket_prefix,
3 $wsgi_python_path = undef,
4 $wsgi_python_home = undef,
9 if ($package_name != undef and $mod_path == undef) or ($package_name == undef and $mod_path != undef) {
10 fail('apache::mod::wsgi - both package_name and mod_path must be specified!')
13 if $package_name != undef {
14 if $mod_path =~ /\// {
15 $_mod_path = $mod_path
17 $_mod_path = "${::apache::lib_path}/${mod_path}"
19 ::apache::mod { 'wsgi':
20 package => $package_name,
25 ::apache::mod { 'wsgi': }
29 # - $wsgi_socket_prefix
34 path => "${::apache::mod_dir}/wsgi.conf",
35 content => template('apache/mod/wsgi.conf.erb'),
36 require => Exec["mkdir ${::apache::mod_dir}"],
37 before => File[$::apache::mod_dir],
38 notify => Class['apache::service'],