
Add and update classes for Nexus, Nexus VXLAN, and UCSM drivers. Use INI provider for driver config except for Nexus switch config. Co-Authored-By: Tim Swanson <tiswanso@cisco.com> Change-Id: I78ddc6795394c4ad2b4da9ab0a2c2a2eed18c25f
32 lines
737 B
Puppet
32 lines
737 B
Puppet
#
|
|
# Install the Cisco plugins and generate the config file
|
|
# from parameters in the other classes.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*package_ensure*]
|
|
# (optional) The intended state of the neutron-plugin-cisco
|
|
# package, i.e. any of the possible values of the 'ensure'
|
|
# property for a package resource type.
|
|
# Defaults to 'present'
|
|
#
|
|
|
|
class neutron::plugins::ml2::cisco (
|
|
$package_ensure = 'present'
|
|
) {
|
|
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-cisco',
|
|
{
|
|
ensure => $package_ensure,
|
|
tag => 'openstack',
|
|
}
|
|
)
|
|
}
|