From 90f2f5e95335cd7cf8565fcc3323569da7842e4b Mon Sep 17 00:00:00 2001 From: Jeremy Frasier Date: Fri, 24 May 2024 12:03:18 -0400 Subject: [PATCH] Use 1.x version of amazon-efs-utils on Ubuntu Jammy The Molecule tests pass when we use version 2.x on that platform, but when building an actual AMI the installation of cargo pulls in the libssh2-1 package, which seems to break the running ssh server. See this build, for example: https://github.com/cisagov/ubuntu-server-packer/actions/runs/9226352690/job/25386015270?pr=24 On Ubuntu Noble the installation of cargo pulls in libssh2-1t64, which hopefully does not break the running ssh server. --- molecule/default/tests/test_default.py | 2 +- vars/Ubuntu_jammy.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 120000 vars/Ubuntu_jammy.yml diff --git a/molecule/default/tests/test_default.py b/molecule/default/tests/test_default.py index efe5e70..9598cf5 100644 --- a/molecule/default/tests/test_default.py +++ b/molecule/default/tests/test_default.py @@ -19,7 +19,7 @@ def test_packages(host): if distribution in ["fedora"]: pkgs = ["amazon-efs-utils", "cargo", "make", "openssl-devel", "rpm-build"] elif distribution in ["debian", "kali", "ubuntu"]: - if codename in ["buster", "bullseye", "bookworm"]: + if codename in ["buster", "bullseye", "bookworm", "jammy"]: pkgs = ["amazon-efs-utils", "binutils", "make"] else: pkgs = [ diff --git a/vars/Ubuntu_jammy.yml b/vars/Ubuntu_jammy.yml new file mode 120000 index 0000000..2da8f53 --- /dev/null +++ b/vars/Ubuntu_jammy.yml @@ -0,0 +1 @@ +Debian_bookworm.yml \ No newline at end of file