[ha] Run OpenDaylight in cluster mode
[fuel.git] / mcp / salt-formulas / salt-formula-opendaylight / metadata / service / server / cluster.yml
1 ##############################################################################
2 # Copyright (c) 2018 Mirantis Inc. and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 ##############################################################################
8 ---
9 applications:
10   - opendaylight
11 classes:
12   - service.keepalived.cluster.single
13 parameters:
14   _param:
15     opendaylight_version: fluorine
16     keepalived_vip_virtual_router_id: 199
17     keepalived_vip_address: ${_param:opendaylight_service_host}
18     keepalived_vip_password: ${_param:opnfv_main_password}
19     keepalived_vip_interface: ${_param:single_nic}
20   opendaylight:
21     server:
22       enabled: 'True'
23       version: ${_param:opendaylight_version}
24       repo: 'odl-team/${_param:opendaylight_version}'
25       cluster_enabled: true
26       logging:
27         engine: syslog
28   keepalived:
29     cluster:
30       vrrp_scripts:
31         check_port:
32           args:
33             - ${_param:opendaylight_rest_port}
34             - TCP
35             - 4
36           interval: 15
37           rise: 3
38           fall: 1
39       instance:
40         VIP:
41           track_script: check_port