From c63632f4c6673bd8de72f965df8a8d2e43460e92 Mon Sep 17 00:00:00 2001 From: faiq Date: Mon, 25 Nov 2024 11:25:17 -0800 Subject: [PATCH] fix: pins cloud init to last known working version --- ansible/roles/providers/tasks/aws.yml | 13 +++++++++++++ bundles/redhat8.10/packages.txt.gotmpl | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ansible/roles/providers/tasks/aws.yml b/ansible/roles/providers/tasks/aws.yml index 42d484957..f8148e2d0 100644 --- a/ansible/roles/providers/tasks/aws.yml +++ b/ansible/roles/providers/tasks/aws.yml @@ -33,6 +33,19 @@ when: - ansible_distribution == "Flatcar" +- name: Install cloud-init packages + yum: + name: "{{ packages }}" + state: present + enablerepo: "{{ 'offline' if offline_mode_enabled else '' }}" + disablerepo: "{{ '*' if offline_mode_enabled else '' }}" + vars: + packages: + - cloud-init-23.1.1-10.el8 #this pins the version of cloud-init to avoid the issue here https://github.com/kubernetes-sigs/cluster-api-provider-aws/issues/4745 + - cloud-utils-growpart + - "python{{ '3' if ansible_distribution_major_version|int >= 9 else '2'}}-pip" + when: ansible_os_family == "RedHat" + - name: install aws clients pip: name: "awscli" diff --git a/bundles/redhat8.10/packages.txt.gotmpl b/bundles/redhat8.10/packages.txt.gotmpl index e5bd9ea4c..6dfab9f31 100644 --- a/bundles/redhat8.10/packages.txt.gotmpl +++ b/bundles/redhat8.10/packages.txt.gotmpl @@ -11,7 +11,7 @@ sysstat yum-utils yum-plugin-versionlock NetworkManager -cloud-init +cloud-init-23.1.1-10.el8 cloud-utils-growpart container-selinux {{ if .FetchKubernetesRPMs -}}