docker build: Update saltstack repo URL, locale
[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   - service.haproxy.proxy.single
14 parameters:
15   _param:
16     opendaylight_version: neon
17     cluster_vip_address: ${_param:opendaylight_service_host}
18     keepalived_vip_virtual_router_id: 199
19     keepalived_vip_password: ${_param:opnfv_main_password}
20     keepalived_vip_interface: ${_param:single_nic}
21     haproxy_odl_api_check_params: check inter 20s fastinter 2s
22   opendaylight:
23     server:
24       enabled: 'True'
25       version: ${_param:opendaylight_version}
26       repo: 'odl-team/${_param:opendaylight_version}'
27       cluster_enabled: true
28   keepalived:
29     cluster:
30       vrrp_scripts:
31         check_pidof:
32           args: haproxy
33           interval: 20
34           rise: 3
35           fall: 1
36       instance:
37         VIP:
38           track_script: check_pidof
39   haproxy:
40     proxy:
41       listen:
42         opendaylight_api:
43           type: general-service
44           balance: source
45           binds:
46             - address: ${_param:opendaylight_service_host}
47               port: ${_param:opendaylight_rest_port}
48           servers:
49             - name: ${_param:opendaylight_server_node01_hostname}
50               host: ${_param:opendaylight_server_node01_address}
51               port: ${_param:opendaylight_rest_port}
52               params: ${_param:haproxy_odl_api_check_params}
53             - name: ${_param:opendaylight_server_node02_hostname}
54               host: ${_param:opendaylight_server_node02_address}
55               port: ${_param:opendaylight_rest_port}
56               params: ${_param:haproxy_odl_api_check_params}
57             - name: ${_param:opendaylight_server_node03_hostname}
58               host: ${_param:opendaylight_server_node03_address}
59               port: ${_param:opendaylight_rest_port}
60               params: ${_param:haproxy_odl_api_check_params}