Files
puppet-neutron/manifests/plugins/ml2/bigswitch.pp
Jiri Stransky f8ec8a20a0 Configure Big Switch ML2 plugin
Adds a class to install the Big Switch ML2 plugin and another one to
configure the [restproxy] section of ml2_conf.ini. Currently, only
RedHat osfamily is supported.

Change-Id: If027762f70695c31dbca6151373a0ebe6e75d071
2015-08-24 11:44:18 +02:00

30 lines
705 B
Puppet

#
# Install the Big Switch ML2 plugin.
#
# === Parameters
#
# [*package_ensure*]
# (optional) The intended state of the Big Switch ML2 plugin package
# (python-bsnstacklib) package, i.e. any of the possible values of the
# 'ensure' property for a package resource type. Defaults to
# 'present'
#
class neutron::plugins::ml2::bigswitch (
$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_packages('python-networking-bigswitch',
{
ensure => $package_ensure,
tag => 'openstack',
}
)
}