Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#1380 from abhay-krishna/migrate-to…
Browse files Browse the repository at this point in the history
…-networkmanager

Migrate interface configuration files to NetworkManager keyfiles on RHEL 9
  • Loading branch information
k8s-ci-robot authored Jan 19, 2024
2 parents 8f3ec42 + 65a42b6 commit a6c7506
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions images/capi/ansible/roles/sysprep/tasks/redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@
shell: sed -i '/^\(HWADDR\|UUID\)=/d' /etc/sysconfig/network-scripts/ifcfg-*
when: packer_builder_type != "googlecompute" and ansible_distribution_major_version|int != 9

- name: Migrate interface configuration files to NetworkManager keyfiles
command: nmcli connection migrate
when: packer_builder_type != "googlecompute" and ansible_distribution_major_version|int == 9

- name: Reset network interface IDs
shell: sed -i '/^\(uuid\)=/d' /etc/NetworkManager/system-connections/*.nmconnection
when: packer_builder_type != "googlecompute" and ansible_distribution_major_version|int == 9
Expand Down

0 comments on commit a6c7506

Please sign in to comment.