Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta-isar: images: make LAVA an optional feature #400

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 the ``lava-dispatcher`` package
preinstalled 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
Loading