Trigger event on the Master and wait for the “response event” on the Salt Minion

I want the RPC behavior called by Minion to fit in some kind of script that can then be called by any (non-solo, non-Python) application and service:

  • trigger an event on the wizard (payload matches command line arguments)
  • The Reactor system takes care of it, processes the event, and (depending on the sender and the payload of the event) sends a response event.
    • the response event may contain sensitive payload and cannot be seen (or at least decrypted) by any other minion
  • Minion gets a return event

I know that I can send events to the host using salt-call and salt.modules.event.fire_master .

So how do I wait for a return event?

And how can I guarantee that the response event will not be visible on the event bus by other Minions (afaik all events sent from the Master are public, and filtering occurs with the Minion-side)? I thought about the gpg renderer, but it can be too complicated - there must be a way that the Wizard should send sensitive Pillar data to Minions with similar requirements.

+7
salt stack
source share

No one has answered this question yet.

See related questions:

7
The salt shaker does not return a response after acceptance
2
Copy file from salt master to minions
2
Saltstack apply state in minions through salt reactors and runners
one
Make the minion wait until the master runner finishes
0
The salt master cannot control the state of the minion
0
Reconnecting minions on new salt masters causes problems
0
configure the salt minion configuration from the salt master
0
Communication error between the salt minion and the salt master
0
salt-minion drop of connection with the master
0
salt master does not receive a planned event dedicated to the salt marsh

All Articles