(#11070) Add support for Scientific Linux
This patch adds Scientific Linux to the various case statements so it is supported. This also fixed the various templates so that the log location is variable depending on weither the OS is Redhat based or Debian based.
This commit is contained in:
parent
f1001b367e
commit
2b79e8bdd1
@ -3,7 +3,7 @@ class apache::mod::python {
|
|||||||
|
|
||||||
package { "python":
|
package { "python":
|
||||||
name => $operatingsystem ? {
|
name => $operatingsystem ? {
|
||||||
centos => "mod_python",
|
'centos', 'fedora', 'redhat', 'scientific' => "mod_python",
|
||||||
default => "libapache2-mod-python",
|
default => "libapache2-mod-python",
|
||||||
},
|
},
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
|
@ -3,7 +3,7 @@ class apache::mod::wsgi {
|
|||||||
|
|
||||||
package { "wsgi":
|
package { "wsgi":
|
||||||
name => $operatingsystem ? {
|
name => $operatingsystem ? {
|
||||||
centos => "mod_wsgi",
|
'centos', 'fedora', 'redhat', 'scientific' => "mod_wsgi",
|
||||||
default => "libapache2-mod-wsgi",
|
default => "libapache2-mod-wsgi",
|
||||||
},
|
},
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
|
@ -31,7 +31,7 @@ class apache::params {
|
|||||||
$vhost_name = '*'
|
$vhost_name = '*'
|
||||||
|
|
||||||
case $operatingsystem {
|
case $operatingsystem {
|
||||||
'centos', 'redhat', 'fedora': {
|
'centos', 'redhat', 'fedora', 'scientific': {
|
||||||
$apache_name = 'httpd'
|
$apache_name = 'httpd'
|
||||||
$php_package = 'php'
|
$php_package = 'php'
|
||||||
$ssl_package = 'mod_ssl'
|
$ssl_package = 'mod_ssl'
|
||||||
|
@ -17,7 +17,7 @@ class apache::ssl {
|
|||||||
include apache
|
include apache
|
||||||
|
|
||||||
case $operatingsystem {
|
case $operatingsystem {
|
||||||
'centos', 'fedora', 'redhat': {
|
'centos', 'fedora', 'redhat', 'scientific': {
|
||||||
package { $apache::params::ssl_package:
|
package { $apache::params::ssl_package:
|
||||||
require => Package['httpd'],
|
require => Package['httpd'],
|
||||||
}
|
}
|
||||||
|
@ -36,6 +36,7 @@ define apache::vhost(
|
|||||||
$auth = $apache::params::auth,
|
$auth = $apache::params::auth,
|
||||||
$redirect_ssl = $apache::params::redirect_ssl,
|
$redirect_ssl = $apache::params::redirect_ssl,
|
||||||
$options = $apache::params::options,
|
$options = $apache::params::options,
|
||||||
|
$apache_name = $apache::params::apache_name,
|
||||||
$vhost_name = $apache::params::vhost_name
|
$vhost_name = $apache::params::vhost_name
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
@ -18,9 +18,9 @@ NameVirtualHost <%= vhost_name %>:<%= port %>
|
|||||||
Order allow,deny
|
Order allow,deny
|
||||||
allow from all
|
allow from all
|
||||||
</Directory>
|
</Directory>
|
||||||
ErrorLog /var/log/apache2/<%= name %>_error.log
|
ErrorLog /var/log/<%= apache_name %>/<%= name %>_error.log
|
||||||
LogLevel warn
|
LogLevel warn
|
||||||
CustomLog /var/log/apache2/<%= name %>_access.log combined
|
CustomLog /var/log/<%= apache_name %>/<%= name %>_access.log combined
|
||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
@ -20,9 +20,9 @@ NameVirtualHost <%= vhost_name %>:<%= port %>
|
|||||||
ProxyPassReverse / <%= dest %>/
|
ProxyPassReverse / <%= dest %>/
|
||||||
ProxyPreserveHost On
|
ProxyPreserveHost On
|
||||||
|
|
||||||
ErrorLog /var/log/apache2/<%= name %>_error.log
|
ErrorLog /var/log/<%= apache_name %>/<%= name %>_error.log
|
||||||
LogLevel warn
|
LogLevel warn
|
||||||
CustomLog /var/log/apache2/<%= name %>_access.log combined
|
CustomLog /var/log/<%= apache_name %>/<%= name %>_access.log combined
|
||||||
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user