b4f765572b946fbcf1b6d4108b7a611aaa198413
[armband.git] / patches / reclass-system-salt-model / 0001-linux.system.repo.mcp-Add-Armband-repos.patch
1 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2 : Copyright (c) 2017 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: Mon, 10 Jul 2017 15:31:08 +0000
11 Subject: [PATCH] linux.system.repo.mcp: Add Armband repos
12
13 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
14 ---
15  linux/system/repo/mcp/armband.yml   | 12 ++++++++++++
16  linux/system/repo/mcp/extra.yml     | 10 ++++++++++
17  linux/system/repo/mcp/openstack.yml | 17 +++++++++++++++++
18  3 files changed, 39 insertions(+)
19  create mode 100644 linux/system/repo/mcp/armband.yml
20
21 diff --git a/linux/system/repo/mcp/armband.yml b/linux/system/repo/mcp/armband.yml
22 new file mode 100644
23 index 0000000..d1fa43a
24 --- /dev/null
25 +++ b/linux/system/repo/mcp/armband.yml
26 @@ -0,0 +1,12 @@
27 +parameters:
28 +  linux:
29 +    system:
30 +      repo:
31 +        armband:
32 +          source: "deb http://linux.enea.com/mcp-repos/${_param:openstack_version}/${_param:linux_system_codename} ${_param:openstack_version}-armband main"
33 +          architectures: arm64
34 +          key_url: "https://linux.enea.com/mcp-repos/${_param:openstack_version}/${_param:linux_system_codename}/archive-mcp${_param:openstack_version}.key"
35 +          pin:
36 +          - pin: 'release l=${_param:openstack_version}-armband'
37 +            priority: 1100
38 +            package: '*'
39 diff --git a/linux/system/repo/mcp/extra.yml b/linux/system/repo/mcp/extra.yml
40 index 9839a23..ad9b5ce 100644
41 --- a/linux/system/repo/mcp/extra.yml
42 +++ b/linux/system/repo/mcp/extra.yml
43 @@ -14,3 +14,13 @@ parameters:
44            - pin: 'release a=${_param:linux_system_repo_mcp_extra_version}'
45              priority: 1100
46              package: '*'
47 +        # Armband only provides apt_mk_version=nightly for now
48 +        armband_mcp_extra:
49 +          source: "deb [arch=arm64] http://linux.enea.com/apt-mk/${_param:linux_system_codename}/ nightly extra"
50 +          architectures: arm64
51 +          key_url: "https://linux.enea.com/apt-mk/public.gpg"
52 +          clean_file: true
53 +          pin:
54 +          - pin: 'release a=nightly'
55 +            priority: 1100
56 +            package: '*'
57 diff --git a/linux/system/repo/mcp/openstack.yml b/linux/system/repo/mcp/openstack.yml
58 index 465b75d..22defb7 100644
59 --- a/linux/system/repo/mcp/openstack.yml
60 +++ b/linux/system/repo/mcp/openstack.yml
61 @@ -21,3 +21,20 @@ parameters:
62            - pin: 'release l=${_param:linux_system_repo_mk_openstack_version}'
63              priority: 1100
64              package: '*'
65 +        armband_openstack:
66 +          source: "deb http://linux.enea.com/mcp-repos/${_param:openstack_version}/${_param:linux_system_codename} ${_param:openstack_version} main"
67 +          architectures: arm64
68 +          key_url: "https://linux.enea.com/mcp-repos/${_param:openstack_version}/${_param:linux_system_codename}/archive-mcp${_param:openstack_version}.key"
69 +          pin:
70 +          - pin: 'release l=${_param:openstack_version}'
71 +            priority: 1100
72 +            package: '*'
73 +        # Armband only provides apt_mk_version=nightly for now
74 +        armband_mk_openstack:
75 +          source: "deb [arch=arm64] http://linux.enea.com/apt-mk/${_param:linux_system_codename}/ nightly ${_param:openstack_version}"
76 +          architectures: arm64
77 +          key_url: "https://linux.enea.com/apt-mk/public.gpg"
78 +          pin:
79 +          - pin: 'release l=nightly'
80 +            priority: 1100
81 +            package: '*'