Pinning salt:version (previous commit) writes the running version into
salt_settings.version, but the _mapdata reference files are static and one
per OS — shared across the -3006/-3007/-master suites — so they can't carry a
per-image version. Drop salt_settings.version from both sides of the compare:
it now tracks the kitchen image's salt rather than a fixed default, so it's
not a value the static reference should assert.
Co-authored-by: Claude <noreply@anthropic.com>
On the *-3006* / *-3007* suites, kitchen fails on every platform while
applying the salt states:
'salt' changed from '3006.17-0' to '3008.1-0'
[ERROR ] ModuleNotFoundError: spec not found for the module 'site'
>>>>>> Converge failed on <default-oraclelinux-9-3006-17>
The images ship salt 3006.17/3007.9, but salt.pkgrepo adds the
salt-repo-latest repo (saltproject-rpm/, currently 3008.1) and the unpinned
pkg.installed upgrades salt in place; swapping the running onedir under
salt-call breaks the post-install module refresh, so the run dies.
The per-version pins in test/salt/pillar/ only cover 3002/3003/3004 and set
salt:release, which is no longer read by any state. Pin salt:version to the
image's running version instead, so the formula keeps the installed salt.
Co-authored-by: Claude <noreply@anthropic.com>
On modern SUSE distributions, Python module package names
will only resolve with the python3- prefix.
Signed-off-by: Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
Don't add key_url as it is deprecated and not needed when
pkgrepo_keyring is set. This has been supported since stretch so make it
the default. Also use py3 repo by default for Debian family as it is now
the only option.
Additionally, Raspbian has been updated to use signed-by by default.
```
Offenses:
test/integration/v3000-py2/controls/pkgs_spec.rb:10:5: C: [Correctable]
Style/WordArray: Use ['Salt Minion'] for an array of words.
(https://rubystyle.guide#percent-w)
%w[Salt\ Minion]
^^^^^^^^^^^^^^^^
test/integration/v3000-py3/controls/pkgs_spec.rb:10:5: C: [Correctable]
Style/WordArray: Use ['Salt Minion'] for an array of words.
(https://rubystyle.guide#percent-w)
%w[Salt\ Minion]
^^^^^^^^^^^^^^^^
test/integration/v3001-py3/controls/pkgs_spec.rb:10:5: C: [Correctable]
Style/WordArray: Use ['Salt Minion'] for an array of words.
(https://rubystyle.guide#percent-w)
%w[Salt\ Minion]
^^^^^^^^^^^^^^^^
test/integration/v3002-py3/controls/pkgs_spec.rb:10:5: C: [Correctable]
Style/WordArray: Use ['Salt Minion'] for an array of words.
(https://rubystyle.guide#percent-w)
%w[Salt\ Minion]
^^^^^^^^^^^^^^^^
test/integration/v3003-py3/controls/pkgs_spec.rb:10:5: C: [Correctable]
Style/WordArray: Use ['Salt Minion'] for an array of words.
(https://rubystyle.guide#percent-w)
%w[Salt\ Minion]
^^^^^^^^^^^^^^^^
19 files inspected, 5 offenses detected, 5 offenses auto-correctable
```
Avoid this error:
```
ID: salt-master
Function: pkg.installed
Result: False
Comment: Error occurred installing package(s). Additional info follows:
errors:
- Running scope as unit run-402.scope.
Loaded plugins: ovl, ulninfo
https://repo.saltproject.io/py3/redhat/7Server/x86_64/3002/repodata/repomd.xml:
[Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
No package salt-master available.
Error: Nothing to do
```