Use python3-* package on OS with python3 default
Change-Id: I179748cbd6e9e8f66e1a3775cf78001b0da554cf
This commit is contained in:
parent
1e252b0df4
commit
d9aec52f0d
@ -39,7 +39,7 @@ class neutron::params {
|
||||
$nsx_config_file = '/etc/neutron/plugins/vmware/nsx.ini'
|
||||
$sfc_package = "python${pyvers}-networking-sfc"
|
||||
$group = 'neutron'
|
||||
$mlnx_agent_package = 'python-networking-mlnx'
|
||||
$mlnx_agent_package = "python${pyvers}-networking-mlnx"
|
||||
$eswitchd_service = 'eswitchd'
|
||||
|
||||
if($::osfamily == 'Redhat') {
|
||||
@ -131,7 +131,7 @@ class neutron::params {
|
||||
$nvp_server_package = 'neutron-plugin-nicira'
|
||||
$dhcp_agent_package = 'neutron-dhcp-agent'
|
||||
$metering_agent_package = 'neutron-metering-agent'
|
||||
$vpnaas_agent_package = 'python-neutron-vpnaas'
|
||||
$vpnaas_agent_package = "python${pyvers}-neutron-vpnaas"
|
||||
$openswan_package = 'strongswan'
|
||||
$libreswan_package = false
|
||||
$metadata_agent_package = 'neutron-metadata-agent'
|
||||
|
@ -113,14 +113,28 @@ describe 'neutron::agents::ml2::mlnx' do
|
||||
case facts[:osfamily]
|
||||
when 'Debian'
|
||||
{
|
||||
:mlnx_agent_package => 'python-networking-mlnx',
|
||||
:mlnx_agent_package => 'python3-networking-mlnx',
|
||||
:mlnx_agent_service => 'neutron-plugin-mlnx-agent'
|
||||
}
|
||||
when 'RedHat'
|
||||
{
|
||||
:mlnx_agent_package => 'python-networking-mlnx',
|
||||
:mlnx_agent_service => 'neutron-mlnx-agent'
|
||||
}
|
||||
if facts[:operatingsystem] == 'Fedora'
|
||||
{
|
||||
:mlnx_agent_package => 'python3-networking-mlnx',
|
||||
:mlnx_agent_service => 'neutron-mlnx-agent'
|
||||
}
|
||||
else
|
||||
if facts[:operatingsystemmajrelease] > '7'
|
||||
{
|
||||
:mlnx_agent_package => 'python3-networking-mlnx',
|
||||
:mlnx_agent_service => 'neutron-mlnx-agent'
|
||||
}
|
||||
else
|
||||
{
|
||||
:mlnx_agent_package => 'python-networking-mlnx',
|
||||
:mlnx_agent_service => 'neutron-mlnx-agent'
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -119,7 +119,7 @@ describe 'neutron::services::fwaas' do
|
||||
when 'Debian'
|
||||
{
|
||||
:fwaas_package_name => 'python3-neutron-fwaas',
|
||||
:vpnaas_package_name => 'python-neutron-vpnaas'
|
||||
:vpnaas_package_name => 'python3-neutron-vpnaas'
|
||||
}
|
||||
when 'RedHat'
|
||||
{
|
||||
|
@ -67,7 +67,7 @@ describe 'neutron::services::vpnaas' do
|
||||
case facts[:osfamily]
|
||||
when 'Debian'
|
||||
{
|
||||
:vpnaas_package_name => 'python-neutron-vpnaas'
|
||||
:vpnaas_package_name => 'python3-neutron-vpnaas'
|
||||
}
|
||||
when 'RedHat'
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user