3 ms·
That is what puppet or a similar configuration management solution is for (or doing it by hand I suppose). There's not really a realistic scenario I can think o
by druiid 14y ago
That is what puppet or a similar configuration management solution is for (or doing it by hand I suppose). There's not really a realistic scenario I can think of where you'd be wanting a built-in nginx function to service this requirement.
- conradev 14y agoFor those interested, the "application_nginx" cookbook for Chef does just this. It can configure upstream servers based on role very easily.
- druiid 14y agoIn puppet it's pretty easy as well. The puppet module modification I made to puppet-nginx allows you to do resource collection for a group of upstream servers (and thus add to a group of upstream locations transparently).