Skip to content

Commit

Permalink
fix: pins cloud init to last known working version
Browse files Browse the repository at this point in the history
  • Loading branch information
faiq committed Nov 25, 2024
1 parent 88fa978 commit c63632f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions ansible/roles/providers/tasks/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion bundles/redhat8.10/packages.txt.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand Down

0 comments on commit c63632f

Please sign in to comment.