Fixes missing ODL ML2 Authentication info
authorTim Rozet <trozet@redhat.com>
Fri, 14 Oct 2016 21:43:51 +0000 (17:43 -0400)
committerTim Rozet <trozet@redhat.com>
Tue, 18 Oct 2016 21:11:46 +0000 (17:11 -0400)
Without this, neutron-server fails to start and communication will not
work to ODL REST.

Parital-Bug: 1633630

Change-Id: Ifd906db4e6062ac271c2147fe1149b1009d06ae2
Signed-off-by: Tim Rozet <trozet@redhat.com>
manifests/profile/base/neutron/plugins/ml2/opendaylight.pp

index f25aea6..43ff87e 100644 (file)
 #   (Optional) Port to use for OpenDaylight
 #   Defaults to hiera('opendaylight::odl_rest_port')
 #
+# [*odl_username*]
+#   (Optional) Username to configure for OpenDaylight
+#   Defaults to 'admin'
+#
+# [*odl_password*]
+#   (Optional) Password to configure for OpenDaylight
+#   Defaults to 'admin'
+#
 # [*conn_proto*]
 #   (Optional) Protocol to use to for ODL REST access
 #   Defaults to hiera('opendaylight::nb_connection_protocol')
 #   Defaults to hiera('step')
 #
 class tripleo::profile::base::neutron::plugins::ml2::opendaylight (
-  $odl_port   = hiera('opendaylight::odl_rest_port'),
-  $conn_proto = hiera('opendaylight::nb_connection_protocol'),
-  $step       = hiera('step'),
+  $odl_port     = hiera('opendaylight::odl_rest_port'),
+  $odl_username = hiera('opendaylight::username'),
+  $odl_password = hiera('opendaylight::password'),
+  $conn_proto   = hiera('opendaylight::nb_connection_protocol'),
+  $step         = hiera('step'),
 ) {
 
   if $step >= 4 {
@@ -48,7 +58,9 @@ class tripleo::profile::base::neutron::plugins::ml2::opendaylight (
     if ! $odl_url_ip { fail('OpenDaylight Controller IP/VIP is Empty') }
 
     class { '::neutron::plugins::ml2::opendaylight':
-      odl_url      => "${conn_proto}://${odl_url_ip}:${odl_port}/controller/nb/v2/neutron";
+      odl_username  => $odl_username,
+      odl_password  => $odl_password,
+      odl_url       => "${conn_proto}://${odl_url_ip}:${odl_port}/controller/nb/v2/neutron";
     }
   }
 }