terra-ops / terra-cli

The Terra Command Line Interface
http://terra.readthedocs.org
GNU General Public License v2.0
48 stars 17 forks source link

Expose host settings during app:add and include sane defaults. #56

Closed EclipseGc closed 8 years ago

jonpugh commented 8 years ago

In my experience building devshop, the "host" is really tied to the environment, as the "app" represents just the source code itself, before it is running anywhere. However, the "app" should have a "default host" setting that environments can use when they are created.

This way when you create an environment, you don't have to choose what the host will be, but you can still override it if you want to.

Aside:

"Servers", "hosts", or "providers", whatever we want to call them, should become a real entity at some point. Tracking the status of the machines running our apps is in the scope of this project.

We should handle "servers" as we do with aegir: a hostname and an IP, with a single default server created on installation.

server created as a default, but that can be for the next PR.

EclipseGc commented 8 years ago

So you're asking me to take this a step further and provide environment level host overrides? I'm ++ to that notion, but I think we have to start tracking "Servers", "hosts", "providers" first. I think we're overdue for that, but this patch is a good "hobble-along" until we restructure that more permanently.

Thoughts?

jonpugh commented 8 years ago

Works great, thanks!