puppet-neutron/manifests/plugins/ml2/mellanox.pp
Takashi Kajinami 2ed7911ac7 mlnx: Fix circular dependencies
This change fixes the following circular dependencies caused by
the commit db295da3d6 , which fixed
the wrong plugin package name.

Anchor[neutron::config::begin]
  => File[/etc/neutron/plugin.ini]
  => Class[Neutron::Plugins::Ml2]
  => Class[Neutron::Plugins::Ml2::Mellanox]
  => Package[python3-networking-mlnx]
  => Anchor[neutron::install::end]
  => Anchor[neutron::config::begin]

Change-Id: I397172ad44ebe9e0c096a0bcc15781c1be2a2486
2022-08-25 00:22:25 +09:00

29 lines
688 B
Puppet

#
# Install the Mellanox plugins and generate the config file
# from parameters in the other classes.
#
# === Parameters
#
# [*package_ensure*]
# (optional) The intended state of the networking-mlnx
# package, i.e. any of the possible values of the 'ensure'
# property for a package resource type.
# Defaults to 'present'
#
class neutron::plugins::ml2::mellanox (
$package_ensure = 'present'
) {
include neutron::deps
include neutron::params
require neutron::plugins::ml2
$mlnx_plugin_package = $::neutron::params::mlnx_plugin_package
ensure_packages($mlnx_plugin_package, {
ensure => $package_ensure,
tag => ['openstack', 'neutron-plugin-ml2-package'],
})
}