Skip to content

Commit

Permalink
feat: added 9.4 versions and updated build.sh
Browse files Browse the repository at this point in the history
Updated the following:
 - added deps test for ansible, packer, jq on build.sh
 - added support for Oracle 9.4
 - added support for Rocky 9.4
 - added support for Alma 9.4

Signed-off-by: Jared Burns <jared.burns@broadcom.com>
  • Loading branch information
burnsjared0415 committed May 20, 2024
1 parent a8f40d8 commit 53b5801
Show file tree
Hide file tree
Showing 7 changed files with 251 additions and 124 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@
[#900](https://github.com/vmware-samples/packer-examples-for-vsphere/pull/900)
- Adds option to enable cloud-init on SUSE Enterprise Linux 15.
[#910](https://github.com/vmware-samples/packer-examples-for-vsphere/pull/919)
- Add support for Oracle Linux 9.4
[#927](https://github.com/vmware-samples/packer-examples-for-vsphere/pull/927)
- Add support for Alma Linux 9.4
[#927](https://github.com/vmware-samples/packer-examples-for-vsphere/pull/927)
- Add support for Rocky Linux 9.4
[#927](https://github.com/vmware-samples/packer-examples-for-vsphere/pull/927)

**Chore**:

Expand Down
12 changes: 12 additions & 0 deletions ansible/roles/base/tasks/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,18 @@
state: latest
when: ansible_distribution == 'AlmaLinux' and ansible_distribution_version | int >= 8 and enable_cloudinit == 'true'

- name: "Installing cloud-init."
command:
cmd: dnf install -y cloud-init
become: yes
when: enable_cloudinit == 'true' and ansible_distribution == 'Rocky'

- name: "Installing cloud-init."
command:
cmd: dnf install -y cloud-init
become: yes
when: enable_cloudinit == 'true' and ansible_distribution == 'OracleLinux'

- block:
- name: "Updating the operating system."
dnf:
Expand Down
Loading

0 comments on commit 53b5801

Please sign in to comment.