opdemand/deis-cookbook — pull request #91 by bacongobbler (2014-03-22 22:58:08+00:00)
Title: Integrate new Router component into Deis

This PR will break routes to applications at its current state, but I wanted to give a sneak peek on the work I'm doing to get a new `router` component into Deis. There are a couple things that are going to be addressed by this PR:

- move nginx from being installed on the proxy node into a container
- re-introduce the `proxy` recipe to the controller
- move app routes from chef databags into Redis

The last point is especially important as we start removing Chef as a hard dependency (see opdemand/deis#607).

If you notice in `recipes/router.rb`, there is a small ruby block that injects a default route into Redis. This default route is just a route from the publicly viewable IP address to the controller on the same node. This will have to be modified since proxy nodes do not have controllers.

Also, don't bother trying to test this PR until at least opdemand/deis#649 is merged and there is a trusted build on the docker index, or it will just break every time you try to deploy.