Skip to content

Commit

Permalink
meta-isar: images: make LAVA an optional feature
Browse files Browse the repository at this point in the history
Closes: #398
Signed-off-by: Cedric Hombourger <[email protected]>
  • Loading branch information
chombourger committed Feb 14, 2024
1 parent d931a29 commit 0b85020
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .github/wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ CIDR
config
de
dearmor
debian
dev
DHCP
DNS
Expand Down Expand Up @@ -59,6 +60,7 @@ jpc
jpg
jqc
JQC
kas
keyrings
kvm
LEDs
Expand All @@ -74,6 +76,7 @@ MTDA's
Mux
MUX
nano
nanopi
NanoPi
neo
netmask
Expand Down Expand Up @@ -129,3 +132,4 @@ VLC
VNC
Wi
www
yml
12 changes: 6 additions & 6 deletions docs/integration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ Sign in to your account with the created superuser. Login should be successful.
Attach to lava-server
~~~~~~~~~~~~~~~~~~~~~

The sample NanoPi NEO image comes with the ``lava-dispatcher`` package
preinstalled. It however needs to be configured to connect to the LAVA server
and logger installed as noted above. You may connect to the MTDA agent using
``ssh`` (default credentials are ``mtda``/``mtda``)::
The sample NanoPi NEO image may be rebuilt with ``lava-dispatcher`` package
pre-installed using the optional `lava.yml` fragment when building with `kas`::

$ ssh mtda@mtda-for-de0-nano-soc.lan
$ ./kas-container build kas/debian/mtda-nanopi-neo.yml:kas/opt/lava.yml

Create a worker on the lava-server web interface through::
It is also possible to install that package using `apt install`. Once the new
image has been deployed (or required packages installed manually), create a
worker on the lava-server web interface through::
Administration -> Lava Scheduler App -> Worker (Add)

Expand Down
17 changes: 17 additions & 0 deletions kas/opt/lava.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ---------------------------------------------------------------------------
# Optional support for LAVA
# ---------------------------------------------------------------------------
#
# This software is a part of MTDA.
# Copyright (C) 2024 Siemens Digital Industries Software
#
# ---------------------------------------------------------------------------
# SPDX-License-Identifier: MIT
# ---------------------------------------------------------------------------

header:
version: 10

local_conf_header:
lava_override: |
OVERRIDES .= ":lava"
2 changes: 1 addition & 1 deletion meta-isar/recipes-core/images/mtda-image.bb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ IMAGE_PREINSTALL += " \
IMAGE_INSTALL += "python3-hap-python"

# LAVA support
IMAGE_PREINSTALL += "lava-dispatcher"
IMAGE_PREINSTALL:lava += "lava-dispatcher"

# Expand root file-system
IMAGE_INSTALL:append = " expand-on-first-boot "
Expand Down

0 comments on commit 0b85020

Please sign in to comment.