aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/reclass/classes/cluster/mcp-odl-ha/infra/config.yml.j2
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2018-10-22 12:36:23 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-10-22 12:36:23 +0000
commitb6d00190ea2d1cc166b39f1db59912b3f572f248 (patch)
treee5b4765a08ca6d3cc6bcab92e580a7d65966f664 /mcp/reclass/classes/cluster/mcp-odl-ha/infra/config.yml.j2
parentd176f3e13ad34afb2c292710ddb513fb33b55339 (diff)
parent6160264a0bd6d01552e120d2ea9dc11629fe4088 (diff)
Merge "[ha] Run OpenDaylight in cluster mode"
Diffstat (limited to 'mcp/reclass/classes/cluster/mcp-odl-ha/infra/config.yml.j2')
-rw-r--r--mcp/reclass/classes/cluster/mcp-odl-ha/infra/config.yml.j232
1 files changed, 32 insertions, 0 deletions
diff --git a/mcp/reclass/classes/cluster/mcp-odl-ha/infra/config.yml.j2 b/mcp/reclass/classes/cluster/mcp-odl-ha/infra/config.yml.j2
new file mode 100644
index 000000000..950c49355
--- /dev/null
+++ b/mcp/reclass/classes/cluster/mcp-odl-ha/infra/config.yml.j2
@@ -0,0 +1,32 @@
+##############################################################################
+# Copyright (c) 2018 Mirantis Inc., Enea AB 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
+##############################################################################
+---
+classes:
+ - cluster.mcp-common-ha.infra.config
+ - cluster.mcp-odl-ha.infra
+parameters:
+ _param:
+ opendaylight_server_node01_hostname: odl01
+ opendaylight_server_node02_hostname: odl02
+ opendaylight_server_node03_hostname: odl03
+ reclass:
+ storage:
+ node:
+{%- for i in range(1, 4) %}
+ opendaylight_control_node0{{ i }}:
+ name: ${_param:opendaylight_server_node0{{ i }}_hostname}
+ domain: ${_param:cluster_domain}
+ classes:
+ - cluster.${_param:cluster_name}.opendaylight.control
+ params:
+ salt_master_host: ${_param:reclass_config_master}
+ linux_system_codename: ${_param:linux_system_codename}
+ single_address: ${_param:opendaylight_server_node0{{ i }}_address}
+ pxe_admin_address: ${_param:opnfv_opendaylight_server_node0{{ i }}_pxe_admin_address}
+ keepalived_vip_priority: 10{{ i }}
+{%- endfor %}