Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jbouse

jbouse/config Secret

Last active October 3, 2015 05:10
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 jbouse/f95a8e8e06ee8d2f9dd0 to your computer and use it in GitHub Desktop.
Save jbouse/f95a8e8e06ee8d2f9dd0 to your computer and use it in GitHub Desktop.
Problem: take "mine.get 'servers' 'network.ip_addrs' grain" output and format into a variable structure as shown in config in order to pass through to nginx/ng/files/vhost.conf jinja template from the nginx-formula
config:
- upstream app_servers:
- server: xx.xx.xx.xx:port
- server: yy.yy.yy.yy:port
frontend:
----------
backend1:
- xx.xx.xx.xx
backend2:
- yy.yy.yy.yy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment