Skip to content

Instantly share code, notes, and snippets.

@3issamben 3issamben/master forked from eofs/master
Created Jul 31, 2018

Embed
What would you like to do?
Remove keys of disconnected Saltstack minions
# Enable "presence" events
# - http://docs.saltstack.com/en/latest/ref/configuration/master.html#presence-events
# - http://docs.saltstack.com/en/latest/topics/event/master_events.html#presence-events
presence_events: True
reactor:
# Note: This tag has a typo in it (version 2014.1.5), subject to change!
- 'salt/presense/change':
- /srv/reactor/presence.sls
{% for minion_id in data['lost'] %}
remove_unused_keys:
wheel.key.delete:
- match: {{ minion_id }}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.