aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/salt-formulas/salt-formula-opendaylight/metadata/service/server
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/metadata/service/server
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/metadata/service/server')
-rw-r--r--mcp/salt-formulas/salt-formula-opendaylight/metadata/service/server/cluster.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/mcp/salt-formulas/salt-formula-opendaylight/metadata/service/server/cluster.yml b/mcp/salt-formulas/salt-formula-opendaylight/metadata/service/server/cluster.yml
new file mode 100644
index 000000000..69e1d84fd
--- /dev/null
+++ b/mcp/salt-formulas/salt-formula-opendaylight/metadata/service/server/cluster.yml
@@ -0,0 +1,41 @@
+##############################################################################
+# Copyright (c) 2018 Mirantis Inc. and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+---
+applications:
+ - opendaylight
+classes:
+ - service.keepalived.cluster.single
+parameters:
+ _param:
+ opendaylight_version: fluorine
+ keepalived_vip_virtual_router_id: 199
+ keepalived_vip_address: ${_param:opendaylight_service_host}
+ keepalived_vip_password: ${_param:opnfv_main_password}
+ keepalived_vip_interface: ${_param:single_nic}
+ opendaylight:
+ server:
+ enabled: 'True'
+ version: ${_param:opendaylight_version}
+ repo: 'odl-team/${_param:opendaylight_version}'
+ cluster_enabled: true
+ logging:
+ engine: syslog
+ keepalived:
+ cluster:
+ vrrp_scripts:
+ check_port:
+ args:
+ - ${_param:opendaylight_rest_port}
+ - TCP
+ - 4
+ interval: 15
+ rise: 3
+ fall: 1
+ instance:
+ VIP:
+ track_script: check_port