Revision 4b5caab2
Added by Dominic Cleal about 10 years ago
manifests/config.pp | ||
---|---|---|
}
|
||
|
||
if $foreman::passenger {
|
||
include foreman::config::passenger
|
||
class { '::foreman::config::passenger': } -> anchor { 'foreman::config_end': }
|
||
}
|
||
}
|
manifests/config/passenger.pp | ||
---|---|---|
include ::apache
|
||
include ::apache::mod::headers
|
||
include ::apache::mod::passenger
|
||
Class['::apache'] -> anchor { 'foreman::config::passenger_end': }
|
||
|
||
# Ensure the Version module is loaded as we need it in the Foreman vhosts
|
||
# RedHat distros come with this enabled. Newer Debian and Ubuntu distros
|
spec/classes/foreman_config_passenger_spec.rb | ||
---|---|---|
} end
|
||
|
||
it 'should include apache with modules' do
|
||
should contain_class('apache')
|
||
should contain_class('apache').that_comes_before('Anchor[foreman::config::passenger_end]')
|
||
should contain_class('apache::mod::headers')
|
||
should contain_class('apache::mod::passenger')
|
||
end
|
spec/classes/foreman_config_spec.rb | ||
---|---|---|
should contain_cron('daily summary').with_ensure('absent')
|
||
end
|
||
|
||
it { should contain_class('foreman::config::passenger').with({
|
||
:listen_on_interface => '',
|
||
:scl_prefix => 'ruby193',
|
||
})}
|
||
it 'should contain foreman::config::passenger' do
|
||
should contain_class('foreman::config::passenger').
|
||
with_listen_on_interface('').
|
||
with_scl_prefix('ruby193').
|
||
that_comes_before('Anchor[foreman::config_end]')
|
||
end
|
||
end
|
||
|
||
describe 'without passenger' do
|
Also available in: Unified diff
Contain Apache before foreman::config, stops it being (re)started after
foreman_smartproxy resources