Merge "Add fwaas package for Kilo in Red Hat platforms"

This commit is contained in:
Jenkins 2015-03-06 19:50:57 +00:00 committed by Gerrit Code Review
commit 36ae93de4f
3 changed files with 10 additions and 3 deletions

View File

@ -57,6 +57,8 @@ class neutron::params {
$l3_agent_package = false
$l3_agent_service = 'neutron-l3-agent'
$fwaas_package = 'openstack-neutron-fwaas'
$metadata_agent_service = 'neutron-metadata-agent'
$cliff_package = 'python-cliff'
@ -126,6 +128,8 @@ class neutron::params {
$l3_agent_package = 'neutron-l3-agent'
$l3_agent_service = 'neutron-l3-agent'
$fwaas_package = false
$cliff_package = 'python-cliff'
$kernel_headers = "linux-headers-${::kernelrelease}"

View File

@ -59,9 +59,9 @@ class neutron::services::fwaas (
}
} elsif($::osfamily == 'Redhat') {
# RH platforms
ensure_resource( 'package', $::neutron::params::package_name,
ensure_resource( 'package', $::neutron::params::fwaas_package,
{ 'ensure' => $neutron::package_ensure })
Package[$::neutron::params::package_name] -> Neutron_fwaas_service_config<||>
Package[$::neutron::params::fwaas_package] -> Neutron_fwaas_service_config<||>
}
neutron_fwaas_service_config {

View File

@ -90,11 +90,14 @@ describe 'neutron::services::fwaas' do
end
let :platform_params do
{ :package_name => 'openstack-neutron' }
{ :fwaas_package => 'openstack-neutron-fwaas' }
end
it_configures 'neutron fwaas service plugin'
it 'installs neutron fwaas service package' do
should contain_package('openstack-neutron-fwaas').with_ensure('present')
end
end
end