Files
puppet-neutron/manifests/plugins/ml2/mellanox.pp
Moshe Levi beb372b1fe Add support to networking-mlnx ml2 drivers
Change-Id: Ife22d7c113c33d6e42a94b9d6c32ed8cb61d6488
Co-authored-by: Hamdy Khader <hamdyk@mellanox.com>
2018-03-08 11:17:42 +00:00

34 lines
784 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
if($::osfamily != 'RedHat') {
# Drivers are only packaged for RedHat at this time
fail("Unsupported osfamily ${::osfamily}")
}
ensure_resource('package', 'python-networking-mlnx',
{
ensure => $package_ensure,
tag => ['openstack', 'neutron-package']
}
)
}