Skip to content

Commit

Permalink
Workaround for unpublished Ubuntu 24.04 tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Bischoff committed Oct 2, 2024
1 parent 3d08db6 commit 80b22a1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions salt/repos/clienttools.sls
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,13 @@ tools_update_repo:
{% elif '5.0-nightly' in grains.get('product_version') | default('', true) %}
{% set tools_repo_url = 'http://' + grains.get("mirror") | default("download.suse.de", true) + '/ibs/Devel:/Galaxy:/Manager:/5.0:/Ubuntu' + release + '-SUSE-Manager-Tools/xUbuntu_' + release %}
{% elif '5.0-released' in grains.get('product_version') | default('', true) %}
# TODO: remove extra code when Ubuntu 24.04 tools get released
{% if release == '24.04' %}
{% set tools_repo_url = 'http://' + grains.get("mirror") | default("download.suse.de", true) + '/ibs/Devel:/Galaxy:/Manager:/5.0:/Ubuntu/24.04-SUSE-Manager-Tools/xUbuntu_24.04' %}
{% else %}
{% set tools_repo_url = 'http://' + grains.get("mirror") | default("download.suse.de/ibs", true) + '/SUSE/Updates/Ubuntu/' + release + '-CLIENT-TOOLS/x86_64/update/' %}
{% endif %}
# END TODO
{% elif 'uyuni-master' in grains.get('product_version') | default('', true) %}
{% set tools_repo_url = 'http://' + grains.get("mirror") | default("download.opensuse.org", true) + '/repositories/systemsmanagement:/Uyuni:/Master:/Ubuntu' + short_release + '-Uyuni-Client-Tools/xUbuntu_' + release %}
{% else %}
Expand Down Expand Up @@ -456,7 +462,13 @@ tools_update_repo_raised_priority:
{% elif '5.0-released' in grains.get('product_version') | default('', true) %}
- contents: |
Package: *
# TODO: remove extra code when Ubuntu 24.04 tools get released
{% if release == '24.04' %}
Pin: release l=Devel:Galaxy:Manager:5.0:Ubuntu24.04-SUSE-Manager-Tools
{% else %}
Pin: release l=SUSE:Updates:Ubuntu:{{ release }}-CLIENT-TOOLS:x86_64:update
{% endif %}
# END TODO
Pin-Priority: 800
{% elif 'uyuni-master' in grains.get('product_version') | default('', true) %}
- contents: |
Expand Down

0 comments on commit 80b22a1

Please sign in to comment.