Fix MLNX Neutron agent package installation when manage_service is False
- don't install the package if "manage_service=False" - set service default value for parameter "polling_interval" Change-Id: I5894ba4b4c5688cef45fc6afb7ec55d8ae372b79
This commit is contained in:
parent
47f97fcbf9
commit
3646d61af1
|
@ -17,6 +17,10 @@
|
||||||
# (optional) Whether to start/stop the service
|
# (optional) Whether to start/stop the service
|
||||||
# Defaults to true
|
# Defaults to true
|
||||||
#
|
#
|
||||||
|
# [*manage_package*]
|
||||||
|
# (optional) Whether to install the package
|
||||||
|
# Defaults to true
|
||||||
|
#
|
||||||
# [*physical_interface_mappings*]
|
# [*physical_interface_mappings*]
|
||||||
# (optional) Array of <physical_network>:<physical device>
|
# (optional) Array of <physical_network>:<physical device>
|
||||||
# All physical networks listed in network_vlan_ranges
|
# All physical networks listed in network_vlan_ranges
|
||||||
|
@ -27,7 +31,7 @@
|
||||||
# [*polling_interval*]
|
# [*polling_interval*]
|
||||||
# (optional) The number of seconds the agent will wait between
|
# (optional) The number of seconds the agent will wait between
|
||||||
# polling for local device changes.
|
# polling for local device changes.
|
||||||
# Defaults to '2"
|
# Defaults to $::os_service_default
|
||||||
#
|
#
|
||||||
# [*dhcp_broadcast_reply*]
|
# [*dhcp_broadcast_reply*]
|
||||||
# (optional) Use broadcast in DHCP replies
|
# (optional) Use broadcast in DHCP replies
|
||||||
|
@ -60,8 +64,9 @@ class neutron::agents::ml2::mlnx (
|
||||||
$package_ensure = 'present',
|
$package_ensure = 'present',
|
||||||
$enabled = true,
|
$enabled = true,
|
||||||
$manage_service = true,
|
$manage_service = true,
|
||||||
|
$manage_package = true,
|
||||||
$physical_interface_mappings = $::os_service_default,
|
$physical_interface_mappings = $::os_service_default,
|
||||||
$polling_interval = 2,
|
$polling_interval = $::os_service_default,
|
||||||
$dhcp_broadcast_reply = $::os_service_default,
|
$dhcp_broadcast_reply = $::os_service_default,
|
||||||
$interface_driver = $::os_service_default,
|
$interface_driver = $::os_service_default,
|
||||||
$multi_interface_driver_mappings = $::os_service_default,
|
$multi_interface_driver_mappings = $::os_service_default,
|
||||||
|
@ -102,10 +107,12 @@ class neutron::agents::ml2::mlnx (
|
||||||
'DEFAULT/enable_multi_interface_driver_cache_maintenance' : value => $enable_multi_interface_driver_cache_maintenance;
|
'DEFAULT/enable_multi_interface_driver_cache_maintenance' : value => $enable_multi_interface_driver_cache_maintenance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $manage_package {
|
||||||
package { $mlnx_agent_package:
|
package { $mlnx_agent_package:
|
||||||
ensure => $package_ensure,
|
ensure => $package_ensure,
|
||||||
tag => ['openstack', 'neutron-package'],
|
tag => ['openstack', 'neutron-package'],
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if $manage_service {
|
if $manage_service {
|
||||||
if $enabled {
|
if $enabled {
|
||||||
|
|
Loading…
Reference in New Issue