Feature request for saltutil.synced_all and related state modules #45264
Labels
Core
relates to code central or existential to Salt
Feature
new functionality including changes to functionality and code refactors, etc.
State-Module
Milestone
Description of Issue/Question
Currently if I need to sync custom states, modules, grains, etc. and have that triggered from a state sls, I need to wrap the request in a
module.run
block. This has the disadvantage of triggering a system "change" every time that state sls executes, even if everything was already in sync.I feel this is a common (possibly the most common) use case for using
module.run
, but it's far from ideal.Setup
I would like to replace something like:
(assuming
use_superseded
formodule.run
is in play) with:The output would ideally show only modules that needed to be synced, or otherwise indicate no changes were necessary to the system. I would expect
saltutil.synced_modules
,saltutil.synced_states
, etc. be implemented similarly.Steps to Reproduce Issue
N/A
Versions Report
Not implemented as of Salt 2017.7.2 (Nitrogen).
The text was updated successfully, but these errors were encountered: