Skip to content

Commit 2b79e8b

Browse files
davidaldenkbarber
authored andcommitted
(#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.
1 parent f1001b3 commit 2b79e8b

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

manifests/mod/python.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
package { "python":
55
name => $operatingsystem ? {
6-
centos => "mod_python",
6+
'centos', 'fedora', 'redhat', 'scientific' => "mod_python",
77
default => "libapache2-mod-python",
88
},
99
ensure => installed,

manifests/mod/wsgi.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
package { "wsgi":
55
name => $operatingsystem ? {
6-
centos => "mod_wsgi",
6+
'centos', 'fedora', 'redhat', 'scientific' => "mod_wsgi",
77
default => "libapache2-mod-wsgi",
88
},
99
ensure => installed,

manifests/params.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
$vhost_name = '*'
3232

3333
case $operatingsystem {
34-
'centos', 'redhat', 'fedora': {
34+
'centos', 'redhat', 'fedora', 'scientific': {
3535
$apache_name = 'httpd'
3636
$php_package = 'php'
3737
$ssl_package = 'mod_ssl'

manifests/ssl.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
include apache
1818

1919
case $operatingsystem {
20-
'centos', 'fedora', 'redhat': {
20+
'centos', 'fedora', 'redhat', 'scientific': {
2121
package { $apache::params::ssl_package:
2222
require => Package['httpd'],
2323
}

manifests/vhost.pp

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
$auth = $apache::params::auth,
3737
$redirect_ssl = $apache::params::redirect_ssl,
3838
$options = $apache::params::options,
39+
$apache_name = $apache::params::apache_name,
3940
$vhost_name = $apache::params::vhost_name
4041
) {
4142

templates/vhost-default.conf.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ NameVirtualHost <%= vhost_name %>:<%= port %>
1818
Order allow,deny
1919
allow from all
2020
</Directory>
21-
ErrorLog /var/log/apache2/<%= name %>_error.log
21+
ErrorLog /var/log/<%= apache_name %>/<%= name %>_error.log
2222
LogLevel warn
23-
CustomLog /var/log/apache2/<%= name %>_access.log combined
23+
CustomLog /var/log/<%= apache_name %>/<%= name %>_access.log combined
2424
ServerSignature Off
2525
</VirtualHost>
2626

templates/vhost-proxy.conf.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ NameVirtualHost <%= vhost_name %>:<%= port %>
2020
ProxyPassReverse / <%= dest %>/
2121
ProxyPreserveHost On
2222

23-
ErrorLog /var/log/apache2/<%= name %>_error.log
23+
ErrorLog /var/log/<%= apache_name %>/<%= name %>_error.log
2424
LogLevel warn
25-
CustomLog /var/log/apache2/<%= name %>_access.log combined
25+
CustomLog /var/log/<%= apache_name %>/<%= name %>_access.log combined
2626

2727
</VirtualHost>
2828

0 commit comments

Comments
 (0)