Skip to content

Instantly share code, notes, and snippets.

Created March 19, 2015 18:21
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/27601ba148168d708e0e to your computer and use it in GitHub Desktop.
Save anonymous/27601ba148168d708e0e to your computer and use it in GitHub Desktop.
{% for ip in salt['grains.get']('ipv4', '') -%}
{% if ip.startswith('10') -%}
if failed host {{ ip }} port 3054 type TCP then restart
if failed host {{ ip }} ipaddr port 3154 protocol http
{%- endif %}
{%- endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment