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.
salt stack
muffel
source share