Can I pass data between multiple steps in a salt orchestrator?

Viewed 13

I have a list of states for different targets that I am orchestrating. I am using salt orchestration for this.

I want to apply a state on one target. This process at one point generates an ID on the target. I can easily query that ID on that target.

I now need to apply a different state to a different target, that requires that ID.

My question is: How can I share data that from one minion with the next orchestration step as a jinja variable (or similar)?

Details:

  1. Salt creates a Ressource on a minion (Rancher Management k8s Cluster).
  2. The Ressource is assigned a random ID by the minion (Rancher).
  3. I can query that ID with a kubectl commmand using cmd.run
  4. I would like to pass the result on to a next step in the orchestration. Preferably accessing it as a {{ jinjna variable }}. This step is executed on a different Minion.
0 Answers
Related