Skip to content
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

Use --cachedir parameter for setting extension_modules with salt-call (bsc#1226141) #663

Conversation

vzhestkov
Copy link
Contributor

@vzhestkov vzhestkov commented Jul 8, 2024

What does this PR do?

Even if --cachedir comman line parameter with the new cache target specified for salt-call the extension modules are placed to cachedir+/extmods in most cases with the Salt Bundle it's /var/cache/venv-salt-minion/extmods or /var/cache/salt/minion/extmods for the classic salt-minion.

This PR if making the extension_modules opts to be aligned with cachedir if specified as CLI parameter for salt-call.

What issues does this PR fix or reference?

Tracks: https://github.com/SUSE/spacewalk/issues/24523
Upstream PR: saltstack/salt#66742

Previous Behavior

Keep using original cachedir destination value from the config for extension mudules cache even if different destination of cache directory specified with --cachedir comman line parameter.

New Behavior

Aligns extension_modules in the opts according to the value specified with --cachedir comman line parameter.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes/No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@vzhestkov vzhestkov force-pushed the openSUSE/fix/3006.6/use-cachedir-cli-for-extension_modules branch 2 times, most recently from 5e90089 to f71c045 Compare July 9, 2024 08:09
@vzhestkov vzhestkov force-pushed the openSUSE/fix/3006.6/use-cachedir-cli-for-extension_modules branch from f71c045 to 7986277 Compare July 9, 2024 18:32
@vzhestkov vzhestkov force-pushed the openSUSE/fix/3006.6/use-cachedir-cli-for-extension_modules branch from c9e9540 to 7986277 Compare July 22, 2024 09:36
@vzhestkov vzhestkov merged commit 2fb453d into openSUSE/release/3006.0 Sep 25, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants