summaryrefslogtreecommitdiffstats
path: root/build/puppet-neutron/manifests/plugins/ml2/networking-vpp.pp
blob: 26548d3a4d6c779c4bc684ab94456d9df53af8ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#
# Install the networking-vpp ML2 mechanism driver and generate config file
# from parameters in the other classes.
#
# === Parameters
#
# [*package_ensure*]
# (optional) The intended state of the networking-vpp
# package, i.e. any of the possible values of the 'ensure'
# property for a package resource type.
# Defaults to 'present'
#
# [*agents*]
# Networking-vpp agents's addresses
# Defaults to $::os_service_default
#
class neutron::plugins::ml2::networking-vpp (
  $package_ensure  = 'present',
  $agents          = $::os_service_default,
) {
  require ::neutron::plugins::ml2

  ensure_resource('package', 'networking-vpp',
    {
      ensure => $package_ensure,
      tag    => 'openstack',
    }
  )

  neutron_plugin_ml2 {
    'ml2_vpp/agents': value => $agents;
  }
}