state.orch feature request: allow specification of pillar data on cli
Currently, pillar data specified on the command line is not incorporated into the combined pillar data on the minions when running an orchestration command. The feature reqeust is to allow this in a manner similar to that used by the state.sls and state.highstate.
For example, salt-run state.orch orchestration.docker_container pillar='{"registry": "foo", "repo": "bar", "tag": "latest"}' would set the pillar["registry"], pillar["repo"], and pillar["tag"] values when the states are run on the minions.
@garrickp, thanks for the report.
Fyi, you can do this.
I was playing with it tonight, and you just have to pass pillar again to the salt.state in the orchestrate state.
build packages:
salt.state:
- tgt: 'repos.gtmanfred.com'
- pillar: {{ pillar|json() }}
- sls:
- builds.buildpackages
And it will pass it along to your sls call.
I still think that this should pass the pillar data through on its own, but this is useable work around for now.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.