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

feat: disable distributions incompatible with s390x architecture #643

Merged
Changes from all 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
12 changes: 12 additions & 0 deletions generate-templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,13 @@
- name: Load RHEL 7 versions
set_fact:
rhel7_labels: "{{ lookup('osinfo', 'distro=rhel') |map(attribute='short_id') |select('match', '^rhel7\\.') |list |sort }}"
when: target_arch != "s390x"

- name: Load RHEL 7 image urls
set_fact:
rhel7_image_urls: "{{ rhel7_image_urls |default([]) + lookup('osinfo', item) |attr('image_list') |selectattr('architecture', 'eq', 'x86_64') |selectattr('format', 'in', ['raw', 'qcow2']) |map(attribute='url') |list }}"
loop: "{{ rhel7_labels }}"
when: target_arch != "s390x"

- name: Generate RHEL 7 templates
template:
Expand All @@ -119,6 +121,7 @@
osinfoname: "{{ oslabels[0] }}"
cloudusername: cloud-user
image_urls: "{{ rhel7_image_urls }}"
when: target_arch != "s390x"

- name: Load CentOS Stream 9 containerdisk and image urls
set_fact:
Expand Down Expand Up @@ -209,11 +212,13 @@
- name: Load openSUSE versions
set_fact:
opensuse_labels: "{{ lookup('osinfo', 'distro=opensuse') |select('osinfo_active') |map(attribute='short_id') |list |sort }}"
when: target_arch != "s390x"

- name: Load openSUSE image urls
set_fact:
opensuse_image_urls: "{{ opensuse_image_urls |default([]) + lookup('osinfo', item) |attr('image_list') |selectattr('architecture', 'eq', 'x86_64') |selectattr('format', 'in', ['raw', 'qcow2']) |map(attribute='url') |list }}"
loop: "{{ opensuse_labels }}"
when: target_arch != "s390x"

- name: Generate openSUSE templates
template:
Expand All @@ -232,6 +237,7 @@
osinfoname: "{{ oslabels[0] }}"
cloudusername: opensuse
image_urls: "{{ opensuse_image_urls }}"
when: target_arch != "s390x"

- name: Load Ubuntu versions
set_fact:
Expand Down Expand Up @@ -275,6 +281,7 @@
- {flavor: large, workload: highperformance, memsize: "8Gi", cpus: 2, iothreads: True, emulatorthread: True, multiqueue: True, tablet: True, default: False}
vars:
osinfoname: win2k16
when: target_arch != "s390x"

- name: Generate Windows server 2019 templates
template:
Expand All @@ -287,6 +294,7 @@
- {flavor: large, workload: highperformance, memsize: "8Gi", cpus: 2, iothreads: True, emulatorthread: True, multiqueue: True, tablet: True, default: False}
vars:
osinfoname: win2k19
when: target_arch != "s390x"

- name: Generate Windows 10 templates
template:
Expand All @@ -299,6 +307,7 @@
- {flavor: large, workload: highperformance, memsize: "8Gi", cpus: 2, iothreads: True, emulatorthread: True, multiqueue: True, tablet: True, default: False}
vars:
osinfoname: win10
when: target_arch != "s390x"

- name: Generate Windows 11 templates
template:
Expand All @@ -311,6 +320,7 @@
- {flavor: large, workload: highperformance, memsize: "8Gi", cpus: 2, iothreads: True, emulatorthread: True, multiqueue: True, tablet: True, default: False}
vars:
osinfoname: win11
when: target_arch != "s390x"

- name: Generate Windows server 2022 templates
template:
Expand All @@ -323,6 +333,7 @@
- {flavor: large, workload: highperformance, memsize: "8Gi", cpus: 2, iothreads: True, emulatorthread: True, multiqueue: True, tablet: True, default: False}
vars:
osinfoname: win2k22
when: target_arch != "s390x"

- name: Generate Windows server 2025 templates
template:
Expand All @@ -335,3 +346,4 @@
- {flavor: large, workload: highperformance, memsize: "8Gi", cpus: 2, iothreads: True, emulatorthread: True, multiqueue: True, tablet: True, default: False}
vars:
osinfoname: win2k25
when: target_arch != "s390x"
Loading