Fix docs path in common rpm spec file
[apex.git] / build / puppet-neutron / manifests / plugins / ml2 / networking-vpp.pp
1 #
2 # Install the networking-vpp ML2 mechanism driver and generate config file
3 # from parameters in the other classes.
4 #
5 # === Parameters
6 #
7 # [*package_ensure*]
8 # (optional) The intended state of the networking-vpp
9 # package, i.e. any of the possible values of the 'ensure'
10 # property for a package resource type.
11 # Defaults to 'present'
12 #
13 # [*etcd_host*]
14 # (required) etcd server host name or IP.
15 # Defaults to '127.0.0.1'
16 #
17 # [*etcd_port*]
18 # (optional) etcd server listening port.
19 # Defaults to 4001.
20 #
21 # [*etcd_user*]
22 # (optional) User name for etcd authentication
23 # Defaults to ''.
24 #
25 # [*etcd_pass*]
26 # (optional) Password for etcd authentication
27 # Defaults to ''.
28 #
29 class neutron::plugins::ml2::networking-vpp (
30   $package_ensure  = 'present',
31   $etcd_host       = '127.0.0.1',
32   $etcd_port       = 4001,
33   $etcd_user       = '',
34   $etcd_pass       = '',
35 ) {
36   require ::neutron::plugins::ml2
37
38   ensure_resource('package', 'networking-vpp',
39     {
40       ensure => $package_ensure,
41       tag    => 'openstack',
42     }
43   )
44
45   neutron_plugin_ml2 {
46     'ml2_vpp/etcd_host': value => $etcd_host;
47     'ml2_vpp/etcd_port': value => $etcd_port;
48     'ml2_vpp/etcd_user': value => $etcd_user;
49     'ml2_vpp/etcd_pass': value => $etcd_pass;
50   }
51 }