Skip to content

Commit

Permalink
Merge pull request #1684 from uyuni-project/support-leap-as-server-os
Browse files Browse the repository at this point in the history
support standard openSUSE Leap 15.5 as server and proxy os
  • Loading branch information
mcalmer authored Sep 11, 2024
2 parents 35c90a3 + 050aaec commit b1d6978
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 4 deletions.
27 changes: 25 additions & 2 deletions salt/repos/proxy_containerizedUyuni.sls
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% if grains['osfullname'] == 'openSUSE Leap Micro' %}
{% set repo = 'openSUSE_Leap_Micro_5.5' %}

{% if 'uyuni' in grains['product_version'] %}
{% if 'uyuni' == grains['product_version'] %}
# Commented out because we already add this repo in combustion:
# containerutils_uyuni_stable:
# pkgrepo.managed:
Expand All @@ -16,7 +16,7 @@
# - gpgkey: http://{{ grains.get("mirror") | default("downloadcontent.opensuse.org", true) }}/repositories/systemsmanagement:/Uyuni:/Stable:/ContainerUtils/{{ repo }}/repodata/repomd.xml.key
{% endif %}

{% if 'uyuni-master' in grains.get('product_version') %}
{% if 'uyuni-master' == grains.get('product_version') %}
# Commented out because we already add this repo in combustion:
# containerutils_uyuni_master:
# pkgrepo.managed:
Expand All @@ -26,6 +26,29 @@
{% endif %}

{% endif %}

{% if grains['osfullname'] == 'Leap' %}
{% set repo = 'openSUSE_Leap_15.5' %}


{% if 'uyuni' == grains['product_version'] %}
containerutils_uyuni_stable:
pkgrepo.managed:
- baseurl: http://{{ grains.get("mirror") | default("downloadcontent.opensuse.org", true) }}/repositories/systemsmanagement:/Uyuni:/Stable:/ContainerUtils/{{ repo }}/
- refresh: True
- gpgkey: http://{{ grains.get("mirror") | default("downloadcontent.opensuse.org", true) }}/repositories/systemsmanagement:/Uyuni:/Stable:/ContainerUtils/{{ repo }}/repodata/repomd.xml.key
{% endif %}

{% if 'uyuni-master' == grains.get('product_version') %}
containerutils_uyuni_master:
pkgrepo.managed:
- baseurl: http://{{ grains.get("mirror") | default("downloadcontent.opensuse.org", true) }}/repositories/systemsmanagement:/Uyuni:/Master:/ContainerUtils/{{ repo }}/
- refresh: True
- gpgkey: http://{{ grains.get("mirror") | default("downloadcontent.opensuse.org", true) }}/repositories/systemsmanagement:/Uyuni:/Master:/ContainerUtils/{{ repo }}/repodata/repomd.xml.key
{% endif %}

{% endif %}

{% endif %}
{% endif %}

Expand Down
28 changes: 26 additions & 2 deletions salt/repos/server_containerizedUyuni.sls
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% set repo = 'openSUSE_Leap_Micro_5.5' %}


{% if 'uyuni' in grains['product_version'] %}
{% if 'uyuni' == grains['product_version'] %}
# Commented out because we already add this repo in combustion:
# containerutils_uyuni_stable:
# pkgrepo.managed:
Expand All @@ -14,7 +14,7 @@
# - gpgkey: http://{{ grains.get("mirror") | default("downloadcontent.opensuse.org", true) }}/repositories/systemsmanagement:/Uyuni:/Stable:/ContainerUtils/{{ repo }}/repodata/repomd.xml.key
{% endif %}

{% if 'uyuni-master' in grains.get('product_version') %}
{% if 'uyuni-master' == grains.get('product_version') %}
# Commented out because we already add this repo in combustion:
# containerutils_uyuni_master:
# pkgrepo.managed:
Expand All @@ -25,6 +25,30 @@


{% endif %}

{% if grains['osfullname'] == 'Leap' %}
{% set repo = 'openSUSE_Leap_15.5' %}


{% if 'uyuni' == grains['product_version'] %}
containerutils_uyuni_stable:
pkgrepo.managed:
- baseurl: http://{{ grains.get("mirror") | default("downloadcontent.opensuse.org", true) }}/repositories/systemsmanagement:/Uyuni:/Stable:/ContainerUtils/{{ repo }}/
- refresh: True
- gpgkey: http://{{ grains.get("mirror") | default("downloadcontent.opensuse.org", true) }}/repositories/systemsmanagement:/Uyuni:/Stable:/ContainerUtils/{{ repo }}/repodata/repomd.xml.key
{% endif %}

{% if 'uyuni-master' == grains.get('product_version') %}
containerutils_uyuni_master:
pkgrepo.managed:
- baseurl: http://{{ grains.get("mirror") | default("downloadcontent.opensuse.org", true) }}/repositories/systemsmanagement:/Uyuni:/Master:/ContainerUtils/{{ repo }}/
- refresh: True
- gpgkey: http://{{ grains.get("mirror") | default("downloadcontent.opensuse.org", true) }}/repositories/systemsmanagement:/Uyuni:/Master:/ContainerUtils/{{ repo }}/repodata/repomd.xml.key
{% endif %}


{% endif %}

{% endif %}
{% endif %}

Expand Down

0 comments on commit b1d6978

Please sign in to comment.