Align name of updates for Ubuntu client tools
Opened this issue · 1 comments
Bischoff commented
We have the following repository names:
tools_pool_repo.list
--> poolUbuntu2004-Client-Tools.list
--> updates
Shouldn't we align the second one to tools_update_repo.list
?
Sorry in advance if I missed something, I am still getting lost in our repositories jungle.
srbarrios commented
I think we just need to remove the line - file: /etc/apt/sources.list.d/Ubuntu{{ short_release }}-Client-Tools.list
tools_update_repo:
pkgrepo.managed:
- file: /etc/apt/sources.list.d/Ubuntu{{ short_release }}-Client-Tools.list
{% if 'head' in grains.get('product_version') | default('', true) %}
{% set tools_repo_url = 'http://' + grains.get("mirror") | default("download.suse.de", true) + '/ibs/Devel:/Galaxy:/Manager:/Head:/Ubuntu' + release + '-SUSE-Manager-Tools/xUbuntu_' + release %}
{% elif 'beta' in grains.get('product_version') | default('', true) %}
{% set tools_repo_url = 'http://' + grains.get("mirror") | default("download.suse.de/ibs", true) + '/SUSE/Updates/Ubuntu/' + release + '-CLIENT-TOOLS-BETA/x86_64/update/' %}
{% elif 'released' in grains.get('product_version') | default('', true) %}
{% set tools_repo_url = 'http://' + grains.get("mirror") | default("download.suse.de/ibs", true) + '/SUSE/Updates/Ubuntu/' + release + '-CLIENT-TOOLS/x86_64/update/' %}
# We only have one shared Client Tools repository, so we are using 4.1 for 4.0 and 3.2
{% elif '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:/Head:/Ubuntu' + release + '-SUSE-Manager-Tools/xUbuntu_' + release %}
{% 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 %}
{% set tools_repo_url = 'http://' + grains.get("mirror") | default("download.opensuse.org", true) + '/repositories/systemsmanagement:/Uyuni:/Stable:/Ubuntu' + short_release + '-Uyuni-Client-Tools/xUbuntu_' + release %}
{% endif %}
- name: deb {{ tools_repo_url }} /
- key_url: {{ tools_repo_url }}/Release.key
If doesn't work, because it needs to have appended ".list", then... just rename the file param