diff options
author | Anton Gerasimov <anton@advancedtelematic.com> | 2017-12-11 16:28:31 +0100 |
---|---|---|
committer | Anton Gerasimov <anton@advancedtelematic.com> | 2017-12-11 16:28:31 +0100 |
commit | d64e6f3f1367786c9c3cf77dc5a288259bfb28b6 (patch) | |
tree | 05851334e1b3a5c4ee95b0a1549ce00355a5ffb6 | |
parent | dbeb10e4e735e51e482323b283be426f96eceeb3 (diff) | |
download | meta-updater-d64e6f3f1367786c9c3cf77dc5a288259bfb28b6.tar.gz |
Rerun provisioning recipes when credentials have changed
Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-auto-prov.bb | 1 | ||||
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb | 1 | ||||
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-implicit-prov.bb | 1 | ||||
-rw-r--r-- | recipes-sota/aktualizr/credentials.inc | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/recipes-sota/aktualizr/aktualizr-auto-prov.bb b/recipes-sota/aktualizr/aktualizr-auto-prov.bb index 43b23f9..c97cbb8 100644 --- a/recipes-sota/aktualizr/aktualizr-auto-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-auto-prov.bb | |||
@@ -19,6 +19,7 @@ SYSTEMD_SERVICE_${PN} = "aktualizr.service" | |||
19 | inherit systemd | 19 | inherit systemd |
20 | 20 | ||
21 | require environment.inc | 21 | require environment.inc |
22 | require credentials.inc | ||
22 | 23 | ||
23 | export SOTA_PACKED_CREDENTIALS | 24 | export SOTA_PACKED_CREDENTIALS |
24 | 25 | ||
diff --git a/recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb b/recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb index b1b2bff..8779c67 100644 --- a/recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb | |||
@@ -20,6 +20,7 @@ SYSTEMD_SERVICE_${PN} = "aktualizr.service" | |||
20 | inherit systemd | 20 | inherit systemd |
21 | 21 | ||
22 | require environment.inc | 22 | require environment.inc |
23 | require credentials.inc | ||
23 | 24 | ||
24 | do_install() { | 25 | do_install() { |
25 | install -d ${D}${systemd_unitdir}/system | 26 | install -d ${D}${systemd_unitdir}/system |
diff --git a/recipes-sota/aktualizr/aktualizr-implicit-prov.bb b/recipes-sota/aktualizr/aktualizr-implicit-prov.bb index f73829d..c8f0741 100644 --- a/recipes-sota/aktualizr/aktualizr-implicit-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-implicit-prov.bb | |||
@@ -19,6 +19,7 @@ SYSTEMD_SERVICE_${PN} = "aktualizr.service" | |||
19 | inherit systemd | 19 | inherit systemd |
20 | 20 | ||
21 | require environment.inc | 21 | require environment.inc |
22 | require credentials.inc | ||
22 | 23 | ||
23 | do_install() { | 24 | do_install() { |
24 | install -d ${D}${systemd_unitdir}/system | 25 | install -d ${D}${systemd_unitdir}/system |
diff --git a/recipes-sota/aktualizr/credentials.inc b/recipes-sota/aktualizr/credentials.inc new file mode 100644 index 0000000..fe09550 --- /dev/null +++ b/recipes-sota/aktualizr/credentials.inc | |||
@@ -0,0 +1 @@ | |||
SRC_URI_append = "${@'file://${SOTA_PACKED_CREDENTIALS}' if d.getVar('SOTA_PACKED_CREDENTIALS', True) else ' '}" | |||