2011-07-15 15:27:14 -07:00
|
|
|
class apache::mod::python {
|
|
|
|
include apache
|
|
|
|
|
|
|
|
package { "python":
|
|
|
|
name => $operatingsystem ? {
|
2011-11-29 10:39:23 -05:00
|
|
|
'centos', 'fedora', 'redhat', 'scientific' => "mod_python",
|
2011-07-15 15:27:14 -07:00
|
|
|
default => "libapache2-mod-python",
|
|
|
|
},
|
|
|
|
ensure => installed,
|
|
|
|
require => Package["httpd"];
|
|
|
|
}
|
|
|
|
|
|
|
|
a2mod { "python": ensure => present; }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|