From 3f43d7dfed7c95b95264819c6a94475c3b0bdd5e Mon Sep 17 00:00:00 2001 From: Richard Case Date: Fri, 11 Oct 2024 17:52:47 +0100 Subject: [PATCH] chore: pin cloud-init for ubuntu 22.04 image This pins the cloud-init version in the CAPA AMI for ubuntu 22.04 to an older version. This is required as newer versions of cloud-init don't work with the way CAPA gets the user-data onto the instance. This is a temporary solution until a more long term solution is found. Signed-off-by: Richard Case --- images/capi/packer/ami/ubuntu-2204.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/capi/packer/ami/ubuntu-2204.json b/images/capi/packer/ami/ubuntu-2204.json index 785ddba00a..45c012d8c9 100644 --- a/images/capi/packer/ami/ubuntu-2204.json +++ b/images/capi/packer/ami/ubuntu-2204.json @@ -1,6 +1,7 @@ { "ami_filter_name": "ubuntu/images/*ubuntu-jammy-22.04-amd64-server-*", "ami_filter_owners": "099720109477", + "ansible_extra_vars": "pinned_debs=\"cloud-init=23.1.2-0ubuntu0~22.04.1\"", "build_name": "ubuntu-22.04", "distribution": "Ubuntu", "distribution_release": "jammy", @@ -8,4 +9,4 @@ "root_device_name": "/dev/sda1", "source_ami": "", "ssh_username": "ubuntu" -} +} \ No newline at end of file