Added condition to exec for clustering , so that it should not run continuously.
Change-Id: I0c9c8ee595cbedcad9ba874b28699124825d51b2
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
exec { 'Configure ODL OVSDB Clustering':
command => "configure_cluster.sh ${::opendaylight::ha_node_index} ${ha_node_ip_str}",
path => '/opt/opendaylight/bin/:/usr/sbin:/usr/bin:/sbin:/bin',
+ creates => '/opt/opendaylight/configuration/initial/akka.conf'
}
} else {
fail("Number of HA nodes less than 2: ${ha_node_count} and HA Enabled")