
Register OpenDaylight as a network component, it will be available in environment creation wizard. Add task which will register DLUX dashboard inside Fuel Web UI. Move ODL credentials and jetty port number from puppet manifests to hiera. Signed-off-by: Michal Skalski <mskalski@mirantis.com> Change-Id: I6f347aec73435886d72d734fb7d0deecc065b618
26 lines
887 B
Puppet
26 lines
887 B
Puppet
class opendaylight::service {
|
|
include opendaylight
|
|
include opendaylight::ha::haproxy
|
|
$management_vip = hiera('management_vip')
|
|
$odl = hiera('opendaylight')
|
|
$user = $odl['metadata']['default_credentials']['user']
|
|
$password = $odl['metadata']['default_credentials']['password']
|
|
|
|
$rest_port = $odl['rest_api_port']
|
|
|
|
if $odl['enable_bgpvpn'] {
|
|
$odl_up_testing_site = "ovsdb:1"
|
|
} else {
|
|
$odl_up_testing_site = "netvirt:1"
|
|
}
|
|
if roles_include(['primary-controller']) {
|
|
exec { 'wait-until-odl-ready':
|
|
command => "curl -o /dev/null --fail --silent --head -u ${user}:${password} http://${management_vip}:${rest_port}/restconf/operational/network-topology:network-topology/topology/${odl_up_testing_site}",
|
|
path => '/bin:/usr/bin',
|
|
tries => 60,
|
|
try_sleep => 20,
|
|
require => Class['opendaylight::ha::haproxy'],
|
|
}
|
|
}
|
|
}
|