summaryrefslogtreecommitdiffstats
path: root/recipes-sota/aktualizr/aktualizr-shared-prov.bb
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2019-05-28 09:46:28 +0200
committerPatrick Vacek <patrickvacek@gmail.com>2019-06-05 11:55:41 +0200
commitecd33302096d269953b52d75b21225778263e27a (patch)
tree41c15ddb5e90e9b49acc78384bae2cc4dcd814d6 /recipes-sota/aktualizr/aktualizr-shared-prov.bb
parenteb63622b2f3aa4869e0a4e927b5b2ee5bd152053 (diff)
downloadmeta-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.bb43
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 @@
1SUMMARY = "Aktualizr configuration for shared credential provisioning"
2DESCRIPTION = "Configuration for provisioning Aktualizr with shared credentials"
3HOMEPAGE = "https://github.com/advancedtelematic/aktualizr"
4SECTION = "base"
5LICENSE = "MPL-2.0"
6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad"
7
8inherit allarch
9
10DEPENDS = "aktualizr-native zip-native"
11RDEPENDS_${PN}_append = "${@' aktualizr-shared-prov-creds' if d.getVar('SOTA_DEPLOY_CREDENTIALS') == '1' else ''}"
12PV = "1.0"
13PR = "6"
14
15SRC_URI = ""
16
17require credentials.inc
18
19do_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
38FILES_${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: