-
Notifications
You must be signed in to change notification settings - Fork 71
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
SL Micro 6.0 tools for SUSE Manager #1651
SL Micro 6.0 tools for SUSE Manager #1651
Conversation
ee7a634
to
e774c4a
Compare
Maybe just one question, why are you creating %{ if product_version contains "uyuni" } or if [[ $product_version =~ uyuni ]]; then |
I do not see a "contains" operator in https://developer.hashicorp.com/terraform/language/expressions/operators There is a
The code above is shell, and You COULD pass the terraform variable to shell by using this
but this would get expanded to e.g.
which is not really elegant. More discussions about my attempts here: https://suse.slack.com/archives/C02D12TNYLS/p1723642166193729 |
Tested to work on suma-05 with both SUSE Manager and Uyuni products. |
e774c4a
to
0fea53c
Compare
I can confirm the new changes work: uyuni-min-sles15:~ # zypper lr --uri
Repository priorities are without effect. All enabled repositories share the same priority.
# | Alias | Name | Enabled | GPG Check | Refresh | URI
--+--------------------+--------------------+---------+-----------+---------+-------------------------------------------------------------------------------------------------------------------
1 | ca_suse | ca_suse | No | ---- | ---- | http://download.opensuse.org/repositories/SUSE:/CA/15.5/
2 | client_tools_repo | client_tools_repo | No | ---- | ---- | http://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Master:/SLMicro6-Uyuni-Client-Tools/SL-Micro6/
3 | os_pool_repo | os_pool_repo | No | ---- | ---- | http://download.suse.de/ibs/SUSE/Products/SL-Micro/6.0/x86_64/product/
4 | test_repo_rpm_pool | test_repo_rpm_pool | No | ---- | ---- | http://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Test-Packages:/Pool/rpm/
uyuni-min-sles15:~ #
uyuni-min-sles15:~ # salt-call --local grains.item product_version
/usr/lib/python3.11/site-packages/salt/utils/http.py:8: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
import cgi
/usr/lib/python3.11/site-packages/salt/utils/jinja.py:9: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
import pipes
/usr/lib/python3.11/site-packages/salt/grains/core.py:2711: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead.
) = locale.getdefaultlocale()
local:
----------
product_version:
uyuni-master |
What does this PR change?
Use different tools for Uyuni and SUSE Manager for SL Micro 6.0.