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 <emil@theliberatededge.org>
Reviewed-on: #28
This commit is contained in:
emil 2024-08-18 22:28:04 +00:00
parent 51585e8db4
commit f806a44369
2 changed files with 9 additions and 6 deletions

View File

@ -132,13 +132,14 @@ choice.
2. [incus](https://linuxcontainers.org/incus/docs/main/) has been installed and initialised on this 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 machine, so that containers can be launched. It will effectively be used as
a container hypervisor. a container hypervisor.
3. Your user has been granted permissions to manage Linux containers. 3. Your user has been granted permissions to manage Linux containers, i.e. your user is a member of the group `incus-admin`.
4. Python 3 has been set up correctly on the machine. 4. [OpenSSH](https://www.openssh.com/) client and [sshpass](https://sourceforge.net/projects/sshpass/) have been installed on the local machine.
5. [Pipenv](https://github.com/pypa/pipenv) has been installed on the machine. 5. Python 3 has been set up correctly on the machine.
6. [git](https://git-scm.com/) has been installed on the machine. 6. [Pipenv](https://github.com/pypa/pipenv) has been installed on the machine.
7. [Task](https://github.com/go-task/task) has been installed and has been 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. 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 ### Initialize collection project locally

View File

@ -28,3 +28,5 @@ tasks:
vars: vars:
LTE_IMAGE_NAME: LTE_IMAGE_NAME:
sh: cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1 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