c2f2c36f7aa8b38f9311175a2ad29d8080845f23
[armband.git] / patches / opnfv-fuel / 0003-mcp-salt-formulas-opendaylight-AArch64-leveldb.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, 27 Jul 2017 23:42:29 +0200
11 Subject: [PATCH] mcp: salt-formulas: opendaylight: AArch64 leveldb
12
13 ODL requires native leveldbjni support on architectures like AArch64.
14 Armband provides a Debian package that provides exactly that,
15 specially tailored to be applied on top of upstream Opendaylight
16 Debian package.
17
18 Install <armband-odl-leveldb-fix> as part of the existing Opendaylight
19 salt-formula (and not as part of Armband's separate salt-formula, like
20 previous fixups).
21
22 Some dependencies are not self-contained in this formula yet, and
23 should be handled before upstreaming this patch:
24 - Armband DEB repository (mcp-repos) is added by "openstack" state;
25 - only Debian systems are supported (no equivalent RPM provided);
26 - only systemd is supported (unlikely to change);
27
28 JIRA: https://jira.opnfv.org/browse/ARMBAND-283
29
30 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
31 ---
32  mcp/salt-formulas/opendaylight/server.sls | 5 +++++
33  1 file changed, 5 insertions(+)
34
35 diff --git a/mcp/salt-formulas/opendaylight/server.sls b/mcp/salt-formulas/opendaylight/server.sls
36 index 51a4d9f9..61877d12 100644
37 --- a/mcp/salt-formulas/opendaylight/server.sls
38 +++ b/mcp/salt-formulas/opendaylight/server.sls
39 @@ -99,4 +99,9 @@ service.mask:
40        - service: opendaylight
41  {%- endif %}
42
43 +opendaylight_aarch64_leveldbjni:
44 +  pkg.installed:
45 +    {% if grains['cpuarch'] == 'aarch64'%}
46 +    - name: armband-odl-leveldb-fix
47 +    {% endif %}
48  {%- endif %}