2 # Configure the Nicira NVP plugin for neutron.
7 # The password for connection to VMware vCenter server.
10 # The user name for NVP controller.
13 # The password for NVP controller
16 # UUID of the pre-existing default NVP Transport zone to be used for creating
17 # tunneled isolated "Neutron" networks. This option MUST be specified.
19 # [*default_l3_gw_service_uuid*]
20 # (Optional) UUID for the default l3 gateway service to use with this cluster.
21 # To be specified if planning to use logical routers with external gateways.
24 class neutron::plugins::nvp (
29 $default_l3_gw_service_uuid = undef,
30 $package_ensure = 'present'
33 include neutron::params
35 Package['neutron'] -> Package['neutron-plugin-nvp']
36 Package['neutron-plugin-nvp'] -> Neutron_plugin_nvp<||>
37 Neutron_plugin_nvp<||> ~> Service<| title == 'neutron-server' |>
38 Package['neutron-plugin-nvp'] -> Service<| title == 'neutron-server' |>
40 package { 'neutron-plugin-nvp':
41 ensure => $package_ensure,
42 name => $::neutron::params::nvp_server_package
45 validate_array($nvp_controllers)
48 'DEFAULT/default_tz_uuid': value => $default_tz_uuid;
49 'DEFAULT/nvp_controllers': value => join($nvp_controllers, ',');
50 'DEFAULT/nvp_user': value => $nvp_user;
51 'DEFAULT/nvp_password': value => $nvp_password, secret => true;
52 'nvp/metadata_mode': value => 'access_network';
55 if($default_l3_gw_service_uuid) {
57 'DEFAULT/default_l3_gw_service_uuid': value => $default_l3_gw_service_uuid;
61 if $::neutron::core_plugin != 'neutron.plugins.nicira.NeutronPlugin.NvpPluginV2' {
62 fail('nvp plugin should be the core_plugin in neutron.conf')
65 # In RH, this link is used to start Neutron process but in Debian, it's used only
66 # to manage database synchronization.
67 file {'/etc/neutron/plugin.ini':
69 target => '/etc/neutron/plugins/nicira/nvp.ini',
70 require => Package['neutron-plugin-nvp']