Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pins cloud init to last known working version for aws #1233

Merged
merged 5 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions ansible/roles/providers/tasks/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,36 @@
when:
- ansible_distribution == "Flatcar"


- name: install cloud-init deps
faiq marked this conversation as resolved.
Show resolved Hide resolved
yum:
name: "{{ packages }}"
state: present
enablerepo: "{{ 'offline' if offline_mode_enabled else '' }}"
disablerepo: "{{ '*' if offline_mode_enabled else '' }}"
vars:
packages:
- cloud-utils-growpart
- "python{{ '3' if ansible_distribution_major_version|int >= 9 else '2'}}-pip"
when: ansible_os_family == "RedHat"
supershal marked this conversation as resolved.
Show resolved Hide resolved

- name: install cloud-init for RHEL
dkoshkin marked this conversation as resolved.
Show resolved Hide resolved
yum:
name: cloud-init
state: present
enablerepo: "{{ 'offline' if offline_mode_enabled else '' }}"
disablerepo: "{{ '*' if offline_mode_enabled else '' }}"
when:
- ansible_os_family == "RedHat"
- ansible_distribution_version is version('8.10', '!=')

#this pins the version of cloud-init to avoid the issue here https://github.com/kubernetes-sigs/cluster-api-provider-aws/issues/4745
- name: Install cloud-init 23.1.1 for RHEL 8.10
faiq marked this conversation as resolved.
Show resolved Hide resolved
shell: rpm -Uvh --oldpackage "{{ offline.os_packages_remote_filesystem_repo_path }}/cloud-init-23.1.1-10.el8.noarch.rpm"
faiq marked this conversation as resolved.
Show resolved Hide resolved
when:
- ansible_os_family == "RedHat"
faiq marked this conversation as resolved.
Show resolved Hide resolved
- ansible_distribution_version is version('8.10', '==')

- 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
faiq marked this conversation as resolved.
Show resolved Hide resolved
cloud-utils-growpart
container-selinux
{{ if .FetchKubernetesRPMs -}}
Expand Down
Loading