Skip to content

[master] Use --cachedir parameter for setting extension_modules with salt-call#66742

Merged
dwoz merged 3 commits into
saltstack:masterfrom
vzhestkov:use-cachedir-cli-for-extension_modules
Sep 19, 2024
Merged

[master] Use --cachedir parameter for setting extension_modules with salt-call#66742
dwoz merged 3 commits into
saltstack:masterfrom
vzhestkov:use-cachedir-cli-for-extension_modules

Conversation

@vzhestkov
Copy link
Copy Markdown
Contributor

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

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, including the
PR Guidelines.

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

@vzhestkov vzhestkov requested a review from a team as a code owner July 24, 2024 08:06
@vzhestkov vzhestkov requested a review from Akm0d July 24, 2024 08:06
@salt-project-bot-prod-environment salt-project-bot-prod-environment Bot changed the title Use --cachedir parameter for setting extension_modules with salt-call [master] Use --cachedir parameter for setting extension_modules with salt-call Jul 24, 2024
Copy link
Copy Markdown
Contributor

@dmurphy18 dmurphy18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a changelog entry before it can be reviewed

@dwoz dwoz added the test:full Run the full test suite label Sep 18, 2024
@dwoz dwoz merged commit c246f20 into saltstack:master Sep 19, 2024
agraul pushed a commit to agraul/salt that referenced this pull request Jan 27, 2025
* Use --cachedir parameter for extension_modules with salt-call

* Add test to check extension_modules value alignment

BACKPORT-UPSTREAM=saltstack#66742
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants