salt icon indicating copy to clipboard operation
salt copied to clipboard

state.orch feature request: allow specification of pillar data on cli

Open garrickp opened this issue 11 years ago • 3 comments

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 avatar Sep 29 '15 14:09 garrickp

@garrickp, thanks for the report.

jfindlay avatar Sep 29 '15 21:09 jfindlay

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.

gtmanfred avatar Nov 01 '15 05:11 gtmanfred

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.

stale[bot] avatar Jan 29 '18 05:01 stale[bot]