Added condition to exec 24/55624/1
authorAmar Krishna <amar266@gmail.com>
Mon, 16 May 2016 06:23:16 +0000 (11:53 +0530)
committerDaniel Farrell <dfarrell@redhat.com>
Wed, 19 Apr 2017 19:18:40 +0000 (15:18 -0400)
Added condition to exec for clustering , so that it should not run continuously.

Change-Id: I0c9c8ee595cbedcad9ba874b28699124825d51b2
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
manifests/config.pp

index a0f2c2124c8fd1734be36c190a3f56e9718a083d..f164278ead7765e0bb0cb315c0aab1c87be532fa 100644 (file)
@@ -71,6 +71,7 @@ class opendaylight::config {
       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")