From 3a86be3361346a698f755f4ebdb9c1a55bea7094 Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Sun, 3 Dec 2017 00:39:05 +0100 Subject: virtual: Add infra/init.yml for each scenario Align our reclass model for virtual PODs with baremetal, by adding an infra init file for each scenario, setting up cluster_name via scenario infra init instead of scenario init. While at it, reduce redundancy by defining cluster_domain based on cluster_name via common infra init. JIRA: FUEL-310 Change-Id: I5e89c883853fa66cb1c1fc69ce5766ee136ac477 Signed-off-by: Alexandru Avadanii --- .../cluster/virtual-mcp-pike-ovs-dpdk-noha/infra/init.yml | 14 ++++++++++++++ .../cluster/virtual-mcp-pike-ovs-dpdk-noha/init.yml | 7 +------ 2 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 mcp/reclass/classes/cluster/virtual-mcp-pike-ovs-dpdk-noha/infra/init.yml (limited to 'mcp/reclass/classes/cluster/virtual-mcp-pike-ovs-dpdk-noha') diff --git a/mcp/reclass/classes/cluster/virtual-mcp-pike-ovs-dpdk-noha/infra/init.yml b/mcp/reclass/classes/cluster/virtual-mcp-pike-ovs-dpdk-noha/infra/init.yml new file mode 100644 index 000000000..50676fc2c --- /dev/null +++ b/mcp/reclass/classes/cluster/virtual-mcp-pike-ovs-dpdk-noha/infra/init.yml @@ -0,0 +1,14 @@ +############################################################################## +# Copyright (c) 2017 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.virtual-mcp-pike-common-noha.infra + +parameters: + _param: + cluster_name: virtual-mcp-pike-ovs-dpdk-noha diff --git a/mcp/reclass/classes/cluster/virtual-mcp-pike-ovs-dpdk-noha/init.yml b/mcp/reclass/classes/cluster/virtual-mcp-pike-ovs-dpdk-noha/init.yml index e6a7da4df..07e3ef2ca 100644 --- a/mcp/reclass/classes/cluster/virtual-mcp-pike-ovs-dpdk-noha/init.yml +++ b/mcp/reclass/classes/cluster/virtual-mcp-pike-ovs-dpdk-noha/init.yml @@ -10,10 +10,5 @@ classes: - system.linux.system.single - cluster.all-mcp-arch-common - cluster.virtual-mcp-pike-common-noha.init_options - - cluster.virtual-mcp-pike-common-noha.infra + - cluster.virtual-mcp-pike-ovs-dpdk-noha.infra - cluster.virtual-mcp-pike-ovs-dpdk-noha.openstack - -parameters: - _param: - cluster_domain: virtual-mcp-pike-ovs-dpdk-noha.local - cluster_name: virtual-mcp-pike-ovs-dpdk-noha -- cgit 1.2.3-korg