Skip to content

Instantly share code, notes, and snippets.

Created November 27, 2017 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9f2fd2752dc7cba77c5e5bffa34a5f03 to your computer and use it in GitHub Desktop.
Save anonymous/9f2fd2752dc7cba77c5e5bffa34a5f03 to your computer and use it in GitHub Desktop.
{% for minion_id in data['lost'] %}
foreman_remove_host_{{ minion_id }}:
wheel.key.delete:
- match: {{ minion_id }}
{% set minion = salt.modules.zabbix.host_get({{ minion_id }}) %}
module.run:
name: salt.modules.zabbix.host_delete
hostids: {{ minion }}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment