-
-
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
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
config: | |
- upstream app_servers: | |
- server: xx.xx.xx.xx:port | |
- server: yy.yy.yy.yy:port |
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
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