Project

General

Profile

« Previous | Next » 

Revision c9100d26

Added by Alex Fisher over 5 years ago

Make crane use `$pulp::https_chain` if specified

Currently when declared from `pulp.pp`, crane sets its vhost `ssl_chain`
parameter to `$pulp::ca_cert` instead of `$pulp::https_chain`.

Fixes #GH-340

Since `pulp::crane` might be used independently of `pulp`, I've tried to
make this bug fix backwards compatible for those users.

View differences:

spec/classes/pulp_crane_spec.rb
})
end
end
context 'with ssl_chain parameter set' do
let :params do
{
:cert => '/tmp/cert.crt',
:key => '/tmp/cert.key',
:ca_cert => '/tmp/ca_cert.crt',
:ssl_chain => '/tmp/chain.crt',
}
end
let :facts do
on_supported_os['redhat-7-x86_64']
end
it 'should use ssl_chain parameter in apache vhost' do
is_expected.to contain_apache__vhost('crane').with_ssl_chain('/tmp/chain.crt')
end
end
end
end

Also available in: Unified diff