-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[3006.x] salt-ssh pillar fixes #65484
Merged
s0undt3ch
merged 13 commits into
saltstack:3006.x
from
lkubb:salt-ssh-state-pillar-override
Nov 26, 2023
Merged
[3006.x] salt-ssh pillar fixes #65484
s0undt3ch
merged 13 commits into
saltstack:3006.x
from
lkubb:salt-ssh-state-pillar-override
Nov 26, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
salt-project-bot-prod-environment
bot
changed the title
salt-ssh pillar fixes
[master] salt-ssh pillar fixes
Oct 29, 2023
lkubb
force-pushed
the
salt-ssh-state-pillar-override
branch
4 times, most recently
from
October 30, 2023 09:55
e62b194
to
95facb5
Compare
salt-project-bot-prod-environment
bot
changed the title
[master] salt-ssh pillar fixes
[3006.x] salt-ssh pillar fixes
Oct 30, 2023
Instead of passing the pre-rendered pillar as an override, do it like the regular `state` execution module does with `salt-call`: Check if the pillar needs to be rendered, otherwise reuse the already rendered one. Also, ensure that __pillar__ in wrapper modules contains the same one used during rendering, same thing for the one passed to `state.pkg`. Also, ensure that when pillars are rerendered during a state run, they get the master opts in addition to the minion ones, since some modules used in the pillar can rely on them to be present. Also, ensure pillar overrides are accepted for the same functions as with the regular `state` execution module.
This also ports saltstack#50489 into the present
lkubb
force-pushed
the
salt-ssh-state-pillar-override
branch
from
October 30, 2023 19:27
f0e6a0c
to
38ba57d
Compare
s0undt3ch
approved these changes
Nov 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
salt-ssh
state wrapper behave like the regular one, including not re-rendering an already rendered pillar when unnecessary and recursively merging overrides everywhere.What issues does this PR fix or reference?
Fixes: #62230
Fixes: #59802
Fixes: #65483
Fixes: #60002
Might fix:
#61861
#57121
Obviates the need for #57076
Previous Behavior
pillar
overrides, even if their usual counterpart would.__opts__
during pillar rendering were not the same as during regular pillar rendering, causing several functions that rely on a fully functioning master with a populated cache to be borked, noticeably thegpg
renderer, thegit
pillar and mine access, likely many more. (Details: Problem with salt-ssh and mine.get #36796 (comment))New Behavior
ssh_merge_pillar
behavior ofc).gpg
renderer works, the regular mine can be accessed.Merge requirements satisfied?
Commits signed with GPG?
Yes