Skip to content

Instantly share code, notes, and snippets.

@Spankalish
Created March 21, 2016 15:44
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 Spankalish/3a15d7c5c3546ae4b0c6 to your computer and use it in GitHub Desktop.
Save Spankalish/3a15d7c5c3546ae4b0c6 to your computer and use it in GitHub Desktop.
backend nginx_pool
balance roundrobin
mode tcp
{% for server, addr in salt['mine.get']('G@role:webserver and G@env:' ~ env, 'internal_ip', expr_form='compound').items() -%}
server {{ server }} {{ addr }}:80 check
{% endfor -%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment