Hi
I have a use case where I need to wait for the server to come up after a
reboot. I have noticed that after the minion starts, some useful events
appear on the event bus, with tags 'minion_start',
'salt/minion/<minionname>/start' and their variations with
'syndic/<syndicname>/' in front of the tag.
Just what I need, but... In a multi-master/multi-syndic setup those
events appear only on one of the masters in an apparently random
fashion. This is really a blocker for me to make use of those events. I
would like my software which integrates with SaltStack to work
independently on each master for failover reasons. If you create a job
on one master, the result comes back to that one (thanks to master_id),
but obviously those minion_start events have no master_id set for them.
Wouldn't that make more sense to send such events to both masters
instead of a random one?
Or maybe someone has found another reliable way for the master executing
system.reboot on a minion to be notified when the system is up again
after the reboot?
Obviously polling is out of the question as it would create many
unnecessary jobs (depending on the interval), never picked up by that
minion while it is down. Potentially I could also poll every possible
syndic for information about the minions that are up, but that seems
far-fetched too.
--
Regards,
Szymon Juraszczyk,
szy...@juraszczyk.com