Skip to content

[master] Add syncing of custom ssh wrappers - #64518

Merged
Ch3LL merged 6 commits into
saltstack:masterfrom
lkubb:sync-wrappers
Jun 26, 2023
Merged

[master] Add syncing of custom ssh wrappers#64518
Ch3LL merged 6 commits into
saltstack:masterfrom
lkubb:sync-wrappers

Conversation

@lkubb

@lkubb lkubb commented Jun 21, 2023

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds sync_wrapper to the saltutil runner/execution/state modules.
From what I can tell, the loader is already configured to load them.

What issues does this PR fix or reference?

Fixes: #45450
Reference: #61637

Previous Behavior

<cache_dir>/extmods/wrapper is respected by the loader, but cannot be synced from the fileserver

New Behavior

<cache_dir>/extmods/wrapper can be synced

Merge requirements satisfied?

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

Commits signed with GPG?

Yes

@salt-project-bot-prod-environment salt-project-bot-prod-environment Bot changed the title Add syncing of custom ssh wrappers [master] Add syncing of custom ssh wrappers Jun 21, 2023
@lkubb
lkubb temporarily deployed to ci June 21, 2023 19:42 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 21, 2023 19:42 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 21, 2023 19:49 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 21, 2023 19:52 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 21, 2023 19:59 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 21, 2023 20:50 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 21, 2023 20:50 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 21, 2023 20:51 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 21, 2023 21:07 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 21, 2023 21:14 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 21, 2023 21:35 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 21, 2023 22:38 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 21, 2023 22:38 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 21, 2023 22:38 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 21, 2023 22:38 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 21, 2023 22:38 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 21, 2023 22:38 — with GitHub Actions Inactive
@lkubb
lkubb marked this pull request as ready for review June 21, 2023 23:36
@lkubb
lkubb requested a review from a team as a code owner June 21, 2023 23:36
@lkubb
lkubb requested review from MKLeb and removed request for a team June 21, 2023 23:36

@Ch3LL Ch3LL left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you add a test that syncs a custom salt-ssh wraper and then salt-ssh actually uses that wrapper?

Also, this is great, thanks once again.

Comment thread salt/runners/saltutil.py Outdated
Comment thread salt/states/saltutil.py
@lkubb

lkubb commented Jun 22, 2023

Copy link
Copy Markdown
Contributor Author

Whoops, I was a bit too hasty in creating this PR, sorry. It was probably the surprise to find that 95% of the functionality was there already...

versionadded is now corrected and I added a test for syncing + usage. It works as expected on my machine, yay.

@lkubb
lkubb temporarily deployed to ci June 22, 2023 22:12 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 22, 2023 22:12 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 22, 2023 22:12 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 22, 2023 22:12 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 22, 2023 22:33 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 22, 2023 22:35 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 22, 2023 23:45 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 22, 2023 23:45 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 22, 2023 23:45 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 22, 2023 23:45 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 22, 2023 23:45 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci June 22, 2023 23:45 — with GitHub Actions Inactive
@Ch3LL
Ch3LL merged commit 560bacd into saltstack:master Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow custom modules which run on master

3 participants