Skip to content

Commit

Permalink
build: update openstack image upload playbook to support fedora 39
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywang committed Aug 12, 2023
1 parent 4614877 commit 110bff4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tools/upload_openstack_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
cloud_profile: "rhos-01"
image_url:
fedora-rawhide: https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Cloud/x86_64/images
fedora-39: https://dl.fedoraproject.org/pub/fedora/linux/development/39/Cloud/x86_64/images
fedora-38: https://dl.fedoraproject.org/pub/fedora/linux/releases/38/Cloud/x86_64/images
fedora-37: https://dl.fedoraproject.org/pub/fedora/linux/releases/37/Cloud/x86_64/images
centos-stream-9: https://odcs.stream.centos.org/production/latest-CentOS-Stream/compose/BaseOS/x86_64/images
Expand All @@ -17,12 +18,14 @@
centos-stream-9: edge-centos-stream-9
fedora-37: edge-fedora-37
fedora-38: edge-fedora-38
fedora-39: edge-fedora-39
fedora-rawhide: edge-fedora-rawhide
os_distro:
centos-stream-9: centos
centos-stream-8: centos
fedora-37: fedora
fedora-38: fedora
fedora-39: fedora
fedora-rawhide: fedora
os_network:
rhos-01: "shared_net_9"
Expand Down Expand Up @@ -57,6 +60,17 @@
image_name: "{{ result_file.stdout }}"
when: result_file.changed

- name: get latest Fedora 39 images
shell: curl -s {{ image_url[os] }}/ | grep -ioE '>Fedora-Cloud-Base-39-.*.x86_64.qcow2<' | tr -d '><'
register: result_file
when: os == "fedora-39"

- set_fact:
image_name: "{{ result_file.stdout }}"
when:
- os == "fedora-39"
- result_file.changed

- name: get latest Fedora 38 images
shell: curl -s {{ image_url[os] }}/ | grep -ioE '>Fedora-Cloud-Base-38-.*.x86_64.qcow2<' | tr -d '><'
register: result_file
Expand Down

0 comments on commit 110bff4

Please sign in to comment.