diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2019-05-28 09:46:28 +0200 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2019-06-05 11:55:41 +0200 |
commit | ecd33302096d269953b52d75b21225778263e27a (patch) | |
tree | 41c15ddb5e90e9b49acc78384bae2cc4dcd814d6 /recipes-sota/aktualizr/aktualizr-shared-prov.bb | |
parent | eb63622b2f3aa4869e0a4e927b5b2ee5bd152053 (diff) | |
download | meta-updater-ecd33302096d269953b52d75b21225778263e27a.tar.gz |
Rename provisioning methods.
"Autoprovisioning" or "automatic provisioning" is now known as "shared
credential provisioning". "Implicit provisioning" is now known as
"device credential provisioning". "HSM provisioning" was always a
misnomer, so it is now refered to as "device credential provisioning
with an HSM".
This includes a bump of the aktualizr version as well.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Diffstat (limited to 'recipes-sota/aktualizr/aktualizr-shared-prov.bb')
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-shared-prov.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes-sota/aktualizr/aktualizr-shared-prov.bb b/recipes-sota/aktualizr/aktualizr-shared-prov.bb new file mode 100644 index 0000000..d3d6f16 --- /dev/null +++ b/recipes-sota/aktualizr/aktualizr-shared-prov.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | SUMMARY = "Aktualizr configuration for shared credential provisioning" | ||
2 | DESCRIPTION = "Configuration for provisioning Aktualizr with shared credentials" | ||
3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | ||
4 | SECTION = "base" | ||
5 | LICENSE = "MPL-2.0" | ||
6 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad" | ||
7 | |||
8 | inherit allarch | ||
9 | |||
10 | DEPENDS = "aktualizr-native zip-native" | ||
11 | RDEPENDS_${PN}_append = "${@' aktualizr-shared-prov-creds' if d.getVar('SOTA_DEPLOY_CREDENTIALS') == '1' else ''}" | ||
12 | PV = "1.0" | ||
13 | PR = "6" | ||
14 | |||
15 | SRC_URI = "" | ||
16 | |||
17 | require credentials.inc | ||
18 | |||
19 | do_install() { | ||
20 | if [ -n "${SOTA_AUTOPROVISION_CREDENTIALS}" ]; then | ||
21 | bbwarn "SOTA_AUTOPROVISION_CREDENTIALS are ignored. Please use SOTA_PACKED_CREDENTIALS" | ||
22 | fi | ||
23 | if [ -n "${SOTA_AUTOPROVISION_URL}" ]; then | ||
24 | bbwarn "SOTA_AUTOPROVISION_URL is ignored. Please use SOTA_PACKED_CREDENTIALS" | ||
25 | fi | ||
26 | if [ -n "${SOTA_AUTOPROVISION_URL_FILE}" ]; then | ||
27 | bbwarn "SOTA_AUTOPROVISION_URL_FILE is ignored. Please use SOTA_PACKED_CREDENTIALS" | ||
28 | fi | ||
29 | if [ -n "${OSTREE_PUSH_CREDENTIALS}" ]; then | ||
30 | bbwarn "OSTREE_PUSH_CREDENTIALS is ignored. Please use SOTA_PACKED_CREDENTIALS" | ||
31 | fi | ||
32 | |||
33 | install -m 0700 -d ${D}${libdir}/sota/conf.d | ||
34 | install -m 0644 ${STAGING_DIR_NATIVE}${libdir}/sota/sota-shared-cred.toml \ | ||
35 | ${D}${libdir}/sota/conf.d/20-sota-shared-cred.toml | ||
36 | } | ||
37 | |||
38 | FILES_${PN} = " \ | ||
39 | ${libdir}/sota/conf.d \ | ||
40 | ${libdir}/sota/conf.d/20-sota-shared-cred.toml \ | ||
41 | " | ||
42 | |||
43 | # vim:set ts=4 sw=4 sts=4 expandtab: | ||