I need to wait for a file (in this case /etc/hosts
) to be updated.
The current thought is that it may take up to 30mins for this file to be updated. Naturally, wait_for_event seemed the logical fit given the
timeout` option.
With that said, i wanted to test out beacons and reactors to handle this. Seemed worthwhile. So i created a little test.
I've dropped a beacon on minion1
and have it watching modify on /etc/hosts
. When I copy in a new hosts file on minion1,
the beacon picks it up as expected and drops an event on the event bus. All is well there.
However, wait_for_event
never sees the event. the orch run times out.