[ha] Run OpenDaylight in cluster mode
[fuel.git] / mcp / reclass / classes / cluster / mcp-odl-ha / infra / config.yml.j2
1 ##############################################################################
2 # Copyright (c) 2018 Mirantis Inc., Enea AB 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 classes:
10   - cluster.mcp-common-ha.infra.config
11   - cluster.mcp-odl-ha.infra
12 parameters:
13   _param:
14     opendaylight_server_node01_hostname: odl01
15     opendaylight_server_node02_hostname: odl02
16     opendaylight_server_node03_hostname: odl03
17   reclass:
18     storage:
19       node:
20 {%- for i in range(1, 4) %}
21         opendaylight_control_node0{{ i }}:
22           name: ${_param:opendaylight_server_node0{{ i }}_hostname}
23           domain: ${_param:cluster_domain}
24           classes:
25             - cluster.${_param:cluster_name}.opendaylight.control
26           params:
27             salt_master_host: ${_param:reclass_config_master}
28             linux_system_codename: ${_param:linux_system_codename}
29             single_address: ${_param:opendaylight_server_node0{{ i }}_address}
30             pxe_admin_address: ${_param:opnfv_opendaylight_server_node0{{ i }}_pxe_admin_address}
31             keepalived_vip_priority: 10{{ i }}
32 {%- endfor %}