Added php and perl modules to apache.
This commit is contained in:
parent
f6989ac734
commit
e75a38070a
1 changed files with 60 additions and 1 deletions
|
@ -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 {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue