d6dff71f8d9c366225ceb5bf5bb15eb3129bb9c2
[armband.git] / patches / reclass-system-salt-model / 0003-linux.system.repo-Drop-arch-for-mcp.mirror-repo.patch
1 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2 : Copyright (c) 2018 Enea AB and others.
3 :
4 : All rights reserved. This program and the accompanying materials
5 : are made available under the terms of the Apache License, Version 2.0
6 : which accompanies this distribution, and is available at
7 : http://www.apache.org/licenses/LICENSE-2.0
8 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
9 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
10 Date: Thu, 7 Jun 2018 21:19:07 +0200
11 Subject: [PATCH] linux.system.repo: Drop arch for mcp.mirror repo
12
13 Extending the arch list to 'amd64,arm64' would lead to doubling repo
14 metadata downloads on all archs, while dropping it will allow APT to
15 only download the repo metadata for the current system arch.
16
17 Setting the new linux_system_architectures is also problematic in the
18 context of mixed-architecture clusters.
19
20 To keep old behavior for amd64 and prevent multiple downloads, let's
21 just drop the 'architectures' field.
22
23 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
24 ---
25  linux/system/repo/mcp/mirror/v1/openstack.yml | 1 -
26  1 file changed, 1 deletion(-)
27
28 diff --git a/linux/system/repo/mcp/mirror/v1/openstack.yml b/linux/system/repo/mcp/mirror/v1/openstack.yml
29 index a4a369b2..933bf53a 100644
30 --- a/linux/system/repo/mcp/mirror/v1/openstack.yml
31 +++ b/linux/system/repo/mcp/mirror/v1/openstack.yml
32 @@ -7,7 +7,6 @@ parameters:
33        repo:
34          mirantis_openstack:
35            source: "deb http://mirror.mirantis.com/${_param:apt_mk_version}/openstack-${_param:openstack_version}/${_param:linux_system_codename} ${_param:linux_system_codename} main"
36 -          architectures: ${_param:linux_system_architecture}
37            clean_file: true
38            key_url: https://mirror.mirantis.com/${_param:apt_mk_version}/openstack-${_param:openstack_version}/${_param:linux_system_codename}/archive-${_param:openstack_version}.key
39            pin: