FWaaS: update packaging for Debian & Ubuntu
Ubuntu [1] and Debian [2] are now using neutron-fwaas. Also cleaning unit-tests. [1] http://packages.ubuntu.com/source/vivid/neutron-fwaas [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=783590 Closes-bug #1450589 Change-Id: Ia9c951941c2832b0c6e6b987ed64924b9c827195
This commit is contained in:
@@ -142,7 +142,7 @@ class neutron::params {
|
|||||||
$l3_agent_package = 'neutron-l3-agent'
|
$l3_agent_package = 'neutron-l3-agent'
|
||||||
$l3_agent_service = 'neutron-l3-agent'
|
$l3_agent_service = 'neutron-l3-agent'
|
||||||
|
|
||||||
$fwaas_package = false
|
$fwaas_package = 'neutron-fwaas'
|
||||||
|
|
||||||
$cliff_package = 'python-cliff'
|
$cliff_package = 'python-cliff'
|
||||||
$kernel_headers = "linux-headers-${::kernelrelease}"
|
$kernel_headers = "linux-headers-${::kernelrelease}"
|
||||||
|
@@ -55,11 +55,11 @@ class neutron::services::fwaas (
|
|||||||
Package[$::neutron::params::vpnaas_agent_package] -> Neutron_fwaas_service_config<||>
|
Package[$::neutron::params::vpnaas_agent_package] -> Neutron_fwaas_service_config<||>
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ensure_resource( 'package', $::neutron::params::l3_agent_package, {
|
ensure_resource( 'package', $::neutron::params::fwaas_package, {
|
||||||
'ensure' => $neutron::package_ensure,
|
'ensure' => $neutron::package_ensure,
|
||||||
'tag' => 'openstack'
|
'tag' => 'openstack'
|
||||||
})
|
})
|
||||||
Package[$::neutron::params::l3_agent_package] -> Neutron_fwaas_service_config<||>
|
Package[$::neutron::params::fwaas_package] -> Neutron_fwaas_service_config<||>
|
||||||
}
|
}
|
||||||
} elsif($::osfamily == 'Redhat') {
|
} elsif($::osfamily == 'Redhat') {
|
||||||
# RH platforms
|
# RH platforms
|
||||||
|
@@ -46,20 +46,32 @@ describe 'neutron::services::fwaas' do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'on Debian platforms' do
|
context 'on Ubuntu platforms' do
|
||||||
let :facts do
|
let :facts do
|
||||||
{ :osfamily => 'Debian' }
|
{ :osfamily => 'Debian',
|
||||||
end
|
:operatingsystem => 'Ubuntu' }
|
||||||
|
|
||||||
let :platform_params do
|
|
||||||
{ :l3_agent_package => 'neutron-l3-agent',
|
|
||||||
:vpnaas_agent_package => 'neutron-vpn-agent'}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it_configures 'neutron fwaas service plugin'
|
it_configures 'neutron fwaas service plugin'
|
||||||
|
|
||||||
it 'installs neutron l3 agent package' do
|
it 'installs neutron fwaas package' do
|
||||||
is_expected.to contain_package('neutron-l3-agent').with(
|
is_expected.to contain_package('neutron-fwaas').with(
|
||||||
|
:ensure => 'present',
|
||||||
|
:tag => 'openstack'
|
||||||
|
)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
context 'on Debian platforms without VPNaaS' do
|
||||||
|
let :facts do
|
||||||
|
{ :osfamily => 'Debian',
|
||||||
|
:operatingsystem => 'Debian' }
|
||||||
|
end
|
||||||
|
|
||||||
|
it_configures 'neutron fwaas service plugin'
|
||||||
|
|
||||||
|
it 'installs neutron fwaas package' do
|
||||||
|
is_expected.to contain_package('neutron-fwaas').with(
|
||||||
:ensure => 'present',
|
:ensure => 'present',
|
||||||
:tag => 'openstack'
|
:tag => 'openstack'
|
||||||
)
|
)
|
||||||
@@ -71,11 +83,6 @@ describe 'neutron::services::fwaas' do
|
|||||||
{ :osfamily => 'Debian' }
|
{ :osfamily => 'Debian' }
|
||||||
end
|
end
|
||||||
|
|
||||||
let :platform_params do
|
|
||||||
{ :l3_agent_package => 'neutron-l3-agent',
|
|
||||||
:vpnaas_agent_package => 'neutron-vpn-agent' }
|
|
||||||
end
|
|
||||||
|
|
||||||
let :params do
|
let :params do
|
||||||
{ :vpnaas_agent_package => true }
|
{ :vpnaas_agent_package => true }
|
||||||
end
|
end
|
||||||
@@ -95,10 +102,6 @@ describe 'neutron::services::fwaas' do
|
|||||||
{ :osfamily => 'RedHat' }
|
{ :osfamily => 'RedHat' }
|
||||||
end
|
end
|
||||||
|
|
||||||
let :platform_params do
|
|
||||||
{ :fwaas_package => 'openstack-neutron-fwaas' }
|
|
||||||
end
|
|
||||||
|
|
||||||
it_configures 'neutron fwaas service plugin'
|
it_configures 'neutron fwaas service plugin'
|
||||||
|
|
||||||
it 'installs neutron fwaas service package' do
|
it 'installs neutron fwaas service package' do
|
||||||
|
Reference in New Issue
Block a user