47 lines
1.4 KiB
Puppet
47 lines
1.4 KiB
Puppet
# Copyright 2016 Mirantis, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
#
|
|
# == Class: ::vmware_dvs
|
|
#
|
|
# Install the vmware_dvs neutron ml2 driver and configure the neutron for it.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*plugin_path*]
|
|
# (required) String. This is the ml2 plugin's path.
|
|
# Defaults to 'neutron/cmd/eventlet/plugins/dvs_neutron_agent.py'.
|
|
#
|
|
class vmware_dvs(
|
|
$plugin_path = 'neutron/cmd/eventlet/plugins/dvs_neutron_agent.py',
|
|
)
|
|
{
|
|
package { ['python-suds','python-networking-vsphere']:
|
|
ensure => present,
|
|
}->
|
|
file {'/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/drivers/networking_vsphere':
|
|
ensure => 'link',
|
|
target => '/usr/lib/python2.7/dist-packages/networking_vsphere'
|
|
}
|
|
|
|
file {'dvs_neutron_agent.py':
|
|
path => $plugin_path,
|
|
source => 'puppet:///modules/vmware_dvs/dvs_neutron_agent.py',
|
|
}
|
|
|
|
neutron_config {
|
|
'oslo_messaging_notifications/driver': value => 'messagingv2';
|
|
}
|
|
|
|
}
|