tripleo_sshd: Install systemd for local molecule testing

Running the molecule tests locally uses the centos/centos:stream9
images, which does not have systemd installed by default. This patch
adds systemd to the list of packages to install when creating the
container for the molecule default scenario.

This wasn't failing in upstream CI, b/c ubi-9/ubi-init:latest does have
systemd installed by default.

Change-Id: I96643e76f89c4a9b9e556c6ca64517f4f912ba8e
Signed-off-by: James Slagle <jslagle@redhat.com>
This commit is contained in:
James Slagle 2022-10-20 14:39:36 -04:00
parent f9cb69399b
commit 64c3223ea5
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ platforms:
registry:
url: ${TRIPLEO_ANSIBLE_MOLECULE_REGISTRY:-"registry.access.redhat.com"}
dockerfile: Dockerfile.j2
pkg_extras: python*setuptools
pkg_extras: python*setuptools systemd
command: "/sbin/init"
volumes: ${TRIPLEO_ANSIBLE_SSHD_MOLECULE_VOLUMES:-['/sys/fs/cgroup:/sys/fs/cgroup:rw','/etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro','/etc/pki/rpm-gpg:/etc/pki/rpm-gpg:O','/opt/yum.repos.d:/etc/yum.repos.d:O','/etc/dnf/vars:/etc/dnf/vars:O']}
privileged: true