forked from saltstack/salt
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update salt-ssh state wrapper pillar handling
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.
- Loading branch information
Showing
6 changed files
with
457 additions
and
55 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fixed merging of complex pillar overrides with salt-ssh states |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Made salt-ssh states not re-render pillars unnecessarily |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Ensured the pillar in SSH wrapper modules is the same as the one used in template rendering when overrides are passed |
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
Oops, something went wrong.