Skip to content

Instantly share code, notes, and snippets.

@UtahDave
Created May 20, 2016 15:46
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 UtahDave/0a5b4c2a947d3fae465140dfa1341ec1 to your computer and use it in GitHub Desktop.
Save UtahDave/0a5b4c2a947d3fae465140dfa1341ec1 to your computer and use it in GitHub Desktop.
salt mine example
{% for server, addrs in salt['mine.get']('roles:docker', 'network.ip_addrs', expr_form='grain').items() %}
{% if '*web1*' in server %}
server {{ server }} {{ addrs[0] }}:443 check inter 2000 rise 2 fall 5
{% endif %}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment