Added php and perl modules to apache.

This commit is contained in:
Timo Mkinen 2009-11-26 10:10:14 +02:00
parent f6989ac734
commit e75a38070a

View file

@ -311,6 +311,66 @@ define apache::sslsite($root="none", $config="none",
}
# Install mod_perl.
#
class apache::mod::perl {
package { "mod_perl":
ensure => installed,
require => Package["httpd"],
}
if defined(Service["httpd"]) {
file { "/etc/httpd/conf.http.d/perl.conf":
ensure => link,
target => "/etc/httpd/conf.d/perl.conf",
require => Package["mod_perl"],
notify => Service["httpd"],
}
}
if defined(Service["httpsd"]) {
file { "/etc/httpd/conf.https.d/perl.conf":
ensure => link,
target => "/etc/httpd/conf.d/perl.conf",
require => Package["mod_perl"],
notify => Service["httpsd"],
}
}
}
# Install PHP.
#
class apache::mod::php {
package { "php":
ensure => installed,
require => Package["httpd"],
}
if defined(Service["httpd"]) {
file { "/etc/httpd/conf.http.d/php.conf":
ensure => link,
target => "/etc/httpd/conf.d/php.conf",
require => Package["php"],
notify => Service["httpd"],
}
}
if defined(Service["httpsd"]) {
file { "/etc/httpd/conf.https.d/php.conf":
ensure => link,
target => "/etc/httpd/conf.d/php.conf",
require => Package["php"],
notify => Service["httpsd"],
}
}
}
# Install mod_python.
#
class apache::mod::python {
@ -339,4 +399,3 @@ class apache::mod::python {
}
}