Skip to content

add saltutil state to wrap saltutil.sync* modules#50197

Merged
rallytime merged 4 commits into
saltstack:developfrom
mchugh19:saltutil-state
Oct 30, 2018
Merged

add saltutil state to wrap saltutil.sync* modules#50197
rallytime merged 4 commits into
saltstack:developfrom
mchugh19:saltutil-state

Conversation

@mchugh19

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds saltutil state to wrap the saltutil.sync_* modules.

What issues does this PR fix or reference?

#45264

Previous Behavior

salutil.sync-* was run in states via module.run, and always ran and reported changes

New Behavior

new saltutil.sync_* states properly report if changes occured supporting on_changes

Tests written?

Yes

@mchugh19 mchugh19 changed the title add individual syncers and release note add saltutil state to wrap saltutil.sync* modules Oct 24, 2018

@cachedout cachedout 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.

This is a great idea. I like it.

@cachedout

Copy link
Copy Markdown
Contributor

Looks like one of these tests does need a fixup though.

@mchugh19

Copy link
Copy Markdown
Contributor Author

Corrected state and test

@rallytime rallytime merged commit 686fa69 into saltstack:develop Oct 30, 2018
@max-arnold

Copy link
Copy Markdown
Contributor

@mchugh19 Are sync_matchers and sync_serializers intentionally missing from the state module?

Also you may want to mention this state module here https://docs.saltstack.com/en/develop/topics/development/modules/#sync-via-the-saltutil-module (these docs were significantly improved in #50633).

@mchugh19

Copy link
Copy Markdown
Contributor Author

Nope! I think they are new and didn't exist at the time. So they can be added anytime.

@mchugh19 mchugh19 deleted the saltutil-state branch July 4, 2019 14:23
mchugh19 pushed a commit to mchugh19/salt that referenced this pull request Oct 13, 2019
add saltutil state to wrap saltutil.sync* modules
@waynew waynew added the has master-port port to master has been created label Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

has master-port port to master has been created

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants