From df66a22fa1007ed3f7cd3b3f0ea0a696a0d06bc3 Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Fri, 11 Aug 2017 00:07:29 +0200 Subject: maas: boot-resources: Dynamic arch list from PDF Instead of leaving MaaS default to 'amd64', explicitly set the list of architectures to support based on PDF data. Change-Id: I852a3ce156db3df0c090f10c0b45c26058dbb6c6 Signed-off-by: Alexandru Avadanii (cherry picked from commit be45e3157fe19b8905e3a30f7f839a728a6c6df7) --- mcp/reclass/classes/cluster/mcp-pike-common-ha/infra/maas_pdf.yml.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mcp/reclass/classes/cluster/mcp-pike-common-ha') diff --git a/mcp/reclass/classes/cluster/mcp-pike-common-ha/infra/maas_pdf.yml.j2 b/mcp/reclass/classes/cluster/mcp-pike-common-ha/infra/maas_pdf.yml.j2 index 335b9c747..963a45ef4 100644 --- a/mcp/reclass/classes/cluster/mcp-pike-common-ha/infra/maas_pdf.yml.j2 +++ b/mcp/reclass/classes/cluster/mcp-pike-common-ha/infra/maas_pdf.yml.j2 @@ -5,7 +5,6 @@ # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## ---- {%- set cluster_arch = [] %} {%- for node in conf.nodes %} {%- if node.node.arch not in cluster_arch %} @@ -14,6 +13,7 @@ {%- endfor %} {%- set net_admin = [conf.idf.net_config.admin.network, conf.idf.net_config.admin.mask] | join("/") %} +--- parameters: maas: region: @@ -31,6 +31,8 @@ parameters: vid: 0 dhcp_on: true primary_rack: ${_param:infra_maas_node01_hostname} + # Space-separated list of dpkg architectures to be supported by MaaS + opnfv_arches:{%- for arch in cluster_arch %} {{ arch | dpkg_arch }}{%- endfor %} sshprefs: - '{{ conf.MAAS_SSH_KEY }}' {%- if 'aarch64' in cluster_arch %} -- cgit 1.2.3-korg