Created
November 27, 2017 08:34
-
-
Save anonymous/9f2fd2752dc7cba77c5e5bffa34a5f03 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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