Skip to content

Commit fca5838

Browse files
author
Morgan Haskel
committed
Give a lower priority to mod_passenger
This was initially implemented in #1060.
1 parent f28a715 commit fca5838

4 files changed

Lines changed: 14 additions & 13 deletions

File tree

manifests/mod/passenger.pp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
$passenger_app_env = undef,
1616
$mod_package = undef,
1717
$mod_package_ensure = undef,
18-
$mod_lib = 'mod_passenger.so',
18+
$mod_lib = undef,
1919
$mod_lib_path = undef,
20-
$mod_id = 'passenger_module',
20+
$mod_id = undef,
2121
$mod_path = undef,
2222
) {
2323
# Managed by the package, but declare it to avoid purging
@@ -56,13 +56,14 @@
5656

5757
$_id = $mod_id
5858
$_path = $mod_path
59-
::apache::mod { 'zpassenger':
59+
::apache::mod { 'passenger':
6060
package => $_package,
6161
package_ensure => $_package_ensure,
6262
lib => $_lib,
6363
lib_path => $_lib_path,
6464
id => $_id,
6565
path => $_path,
66+
loadfile_name => 'zpassenger.load',
6667
}
6768

6869
# Template uses:

manifests/params.pp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
default => undef,
8383
},
8484
'pagespeed' => 'mod-pagespeed-stable',
85-
'zpassenger' => 'mod_passenger',
85+
'passenger' => 'mod_passenger',
8686
'perl' => 'mod_perl',
8787
'php5' => $::apache::version::distrelease ? {
8888
'5' => 'php53',
@@ -182,7 +182,7 @@
182182
'fcgid' => 'libapache2-mod-fcgid',
183183
'nss' => 'libapache2-mod-nss',
184184
'pagespeed' => 'mod-pagespeed-stable',
185-
'zpassenger' => 'libapache2-mod-passenger',
185+
'passenger' => 'libapache2-mod-passenger',
186186
'perl' => 'libapache2-mod-perl2',
187187
'php5' => 'libapache2-mod-php5',
188188
'proxy_html' => 'libapache2-mod-proxy-html',
@@ -331,7 +331,7 @@
331331
# NOTE: not sure where the shibboleth should come from
332332
'auth_kerb' => 'www/mod_auth_kerb2',
333333
'fcgid' => 'www/mod_fcgid',
334-
'zpassenger' => 'www/rubygem-passenger',
334+
'passenger' => 'www/rubygem-passenger',
335335
'perl' => 'www/mod_perl2',
336336
'php5' => 'www/mod_php5',
337337
'proxy_html' => 'www/mod_proxy_html',
@@ -391,7 +391,7 @@
391391
# NOTE: I list here only modules that are not included in www-servers/apache
392392
'auth_kerb' => 'www-apache/mod_auth_kerb',
393393
'fcgid' => 'www-apache/mod_fcgid',
394-
'zpassenger' => 'www-apache/passenger',
394+
'passenger' => 'www-apache/passenger',
395395
'perl' => 'www-apache/mod_perl',
396396
'php5' => 'dev-lang/php',
397397
'proxy_html' => 'www-apache/mod_proxy_html',

spec/acceptance/mod_passenger_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
service_name = 'apache2'
77
mod_dir = '/etc/apache2/mods-available/'
88
conf_file = "#{mod_dir}passenger.conf"
9-
load_file = "#{mod_dir}passenger.load"
9+
load_file = "#{mod_dir}zpassenger.load"
1010

1111
case fact('operatingsystem')
1212
when 'Ubuntu'
@@ -49,7 +49,7 @@
4949
service_name = 'httpd'
5050
mod_dir = '/etc/httpd/conf.d/'
5151
conf_file = "#{mod_dir}passenger.conf"
52-
load_file = "#{mod_dir}passenger.load"
52+
load_file = "#{mod_dir}zpassenger.load"
5353
# sometimes installs as 3.0.12, sometimes as 3.0.19 - so just check for the stable part
5454
passenger_root = '/usr/lib/ruby/gems/1.8/gems/passenger-3.0.1'
5555
passenger_ruby = '/usr/bin/ruby'

spec/classes/mod/passenger_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
end
2222
it { is_expected.to contain_class("apache::params") }
23-
it { is_expected.to contain_apache__mod('zpassenger') }
23+
it { is_expected.to contain_apache__mod('passenger') }
2424
it { is_expected.to contain_package("libapache2-mod-passenger") }
2525
it { is_expected.to contain_file('zpassenger.load').with({
2626
'path' => '/etc/apache2/mods-available/zpassenger.load',
@@ -221,7 +221,7 @@
221221
}
222222
end
223223
it { is_expected.to contain_class("apache::params") }
224-
it { is_expected.to contain_apache__mod('zpassenger') }
224+
it { is_expected.to contain_apache__mod('passenger') }
225225
it { is_expected.to contain_package("mod_passenger") }
226226
it { is_expected.to contain_file('passenger_package.conf').with({
227227
'path' => '/etc/httpd/conf.d/passenger.conf',
@@ -260,7 +260,7 @@
260260
}
261261
end
262262
it { is_expected.to contain_class("apache::params") }
263-
it { is_expected.to contain_apache__mod('zpassenger') }
263+
it { is_expected.to contain_apache__mod('passenger') }
264264
it { is_expected.to contain_package("www/rubygem-passenger") }
265265
end
266266
context "on a Gentoo OS" do
@@ -277,7 +277,7 @@
277277
}
278278
end
279279
it { is_expected.to contain_class("apache::params") }
280-
it { is_expected.to contain_apache__mod('zpassenger') }
280+
it { is_expected.to contain_apache__mod('passenger') }
281281
it { is_expected.to contain_package("www-apache/passenger") }
282282
end
283283
end

0 commit comments

Comments
 (0)