Skip to content

Commit

Permalink
Removed Fedora 38
Browse files Browse the repository at this point in the history
- Also fixed AlmaLunux 8.10
  • Loading branch information
signal-09 committed Jun 5, 2024
1 parent 99d810d commit f88909e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 22 deletions.
18 changes: 4 additions & 14 deletions ansible/group_vars/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ distros:
pup_filter: "'a text{}'"
awk_filter: "-F- '/GenericCloud-.*[0-9]{8}/{ split($5,ver,\".\"); print ver[1] }'"
releases:
- name: 9
version: 9.4
- name: "9"
version: "9.4"
description: AlmaLinux 9.4 (Seafoam Ocelot) Cloud Image
checksum: !unsafe "sha256:{{ base_url }}/CHECKSUM"
eos: May 2027
Expand All @@ -29,8 +29,8 @@ distros:
type: x86_64
- name: arm64
type: aarch64
- name: 8
version: 8.10
- name: "8"
version: "8.10"
description: AlmaLinux 8.10 (Cerulean Leopard) Cloud Image
eos: May 2024
eol: Mar 2029
Expand Down Expand Up @@ -110,16 +110,6 @@ distros:
type: x86_64
- name: arm64
type: aarch64
- name: 38
version: 38
description: Fedora 38 Cloud Image
eol: November 2024
file_url: !unsafe "{{ base_url }}/Fedora-Cloud-Base-{{ release.name }}-{{ build }}.{{ arch.type }}.qcow2"
arch:
- name: amd64
type: x86_64
- name: arm64
type: aarch64

# https://wiki.ubuntu.com/Releases
# https://cloud-images.ubuntu.com
Expand Down
5 changes: 3 additions & 2 deletions ansible/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@
build_version: "{{ distro_build }}"

- name: Check for providers
#include_tasks: box.yaml
when:
- create
- arch.name not in archs
include_role:
name: "{{ provider }}"
vars:
archs: "{{ box_info.json.versions|selectattr('number', 'eq', build_version)|map(attribute='providers')|first|default([])|selectattr('name', 'eq', provider)|map(attribute='architecture') }}"
loop: "{{ providers }}"
loop_control:
loop_var: provider
when: arch.name not in archs
12 changes: 6 additions & 6 deletions ansible/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
register: box_info

- name: Update Vagrant Cloud box
when:
- update
- box_info.status == 200
uri:
url: "https://app.vagrantup.com/api/v2/box/{{ vagrant_cloud_user }}/{{ vagrant_box }}"
method: PUT
Expand All @@ -24,11 +27,11 @@
box:
short_description: "{{ release.description }}"
is_private: false
when:
- update
- box_info.status == 200

- name: Create Vagrant Cloud box
when:
- create
- box_info.status == 404
uri:
url: https://app.vagrantup.com/api/v2/boxes
method: POST
Expand All @@ -46,9 +49,6 @@
short_description: "{{ release.description }}"
is_private: false
register: box_create
when:
- create
- box_info.status == 404

- name: Set initial box version
set_fact:
Expand Down

0 comments on commit f88909e

Please sign in to comment.