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:
- Salt creates a Ressource on a minion (Rancher Management k8s Cluster).
- The Ressource is assigned a random ID by the minion (Rancher).
- I can query that ID with a
kubectlcommmand usingcmd.run - 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.