aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2018-09-28 16:02:30 +0400
committerMichael Polenchuk <mpolenchuk@mirantis.com>2018-10-22 14:23:47 +0400
commit6160264a0bd6d01552e120d2ea9dc11629fe4088 (patch)
treeb916fa8bda3dfcf4e2e9873c04f952dcc4a2bc5a /mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls
parentec817180eece7be6e161e4633e08f41ea94cb903 (diff)
[ha] Run OpenDaylight in cluster mode
Change-Id: Id75fbee34a6cfc6e7fc60df053cccaaff21cb15a Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Diffstat (limited to 'mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls')
-rw-r--r--mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls8
1 files changed, 8 insertions, 0 deletions
diff --git a/mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls b/mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls
index 1ae23d61a..e4ebecf87 100644
--- a/mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls
+++ b/mcp/salt-formulas/salt-formula-opendaylight/opendaylight/server.sls
@@ -69,6 +69,14 @@ opendaylight_service_mask:
- prereq:
- pkg: opendaylight
+{%- if server.cluster_enabled %}
+configure_cluster:
+ cmd.run:
+ - name: /opt/opendaylight/bin/configure-cluster-ipdetect.sh {{ server.seed_nodes_list }}
+ - require:
+ - pkg: opendaylight
+{%- endif %}
+
opendaylight:
pkg.installed:
- require: