From f806a4436950645e21dbcb711a330900895306aa Mon Sep 17 00:00:00 2001 From: emil Date: Sun, 18 Aug 2024 22:28:04 +0000 Subject: [PATCH] i-27: Fixes failing molecule scenario (#28) 1. Generate and inject random ssh admin password prior to running the tests. 2. Add having a ssh client and `sshpass` installed on the local machine as a prerequisite in `README.md`. Co-authored-by: emil Reviewed-on: https://git.theliberatededge.org/the-liberated-edge/test_linux_containers/pulls/28 --- README.md | 13 +++++++------ Taskfile.yml | 2 ++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5731d96..9df3aa7 100644 --- a/README.md +++ b/README.md @@ -132,13 +132,14 @@ choice. 2. [incus](https://linuxcontainers.org/incus/docs/main/) has been installed and initialised on this machine, so that containers can be launched. It will effectively be used as a container hypervisor. -3. Your user has been granted permissions to manage Linux containers. -4. Python 3 has been set up correctly on the machine. -5. [Pipenv](https://github.com/pypa/pipenv) has been installed on the machine. -6. [git](https://git-scm.com/) has been installed on the machine. -7. [Task](https://github.com/go-task/task) has been installed and has been +3. Your user has been granted permissions to manage Linux containers, i.e. your user is a member of the group `incus-admin`. +4. [OpenSSH](https://www.openssh.com/) client and [sshpass](https://sourceforge.net/projects/sshpass/) have been installed on the local machine. +5. Python 3 has been set up correctly on the machine. +6. [Pipenv](https://github.com/pypa/pipenv) has been installed on the machine. +7. [git](https://git-scm.com/) has been installed on the machine. +8. [Task](https://github.com/go-task/task) has been installed and has been available in the `$PATH` environment variable for the current user. -8. [pigz](https://zlib.net/pigz/) has been installed. +9. [pigz](https://zlib.net/pigz/) has been installed. ### Initialize collection project locally diff --git a/Taskfile.yml b/Taskfile.yml index eea25d6..5fb7967 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -28,3 +28,5 @@ tasks: vars: LTE_IMAGE_NAME: sh: cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1 + LTE_CONTAINER_ROOT_PWD: + sh: cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1