Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tying directories directly to an environment or service #312

Open
ianlivingstone opened this issue Nov 7, 2017 · 1 comment
Open

Tying directories directly to an environment or service #312

ianlivingstone opened this issue Nov 7, 2017 · 1 comment

Comments

@ianlivingstone
Copy link
Contributor

Today, with torus link you can tie a directory and it's children to a specific organization and project. However, you cannot a directory directly to a service or environment.

In some cases (such as with terraform controlled infrastructure), it'd be nice to be able to tie a directory directly to a specific environment and/or service.

Off the top of my head I can think of a few different ways we could approach this problem:

  • Enabling recursive .torusrc files, where we'd look up/find the .torusrc closest and then layer the settings from subsequent .torusrc files in subsequent directories until we reach $HOME/.torusrc.
  • Enabling a user to specify a service or environment via .torus.json either as an option to torus link or as a secondary field.
@ianlivingstone ianlivingstone changed the title Tying directories directly to an environment Tying directories directly to an environment or service Nov 7, 2017
@ianlivingstone
Copy link
Contributor Author

Another thought is to rename torus link to torus init, as you are really initializing a torus project and tying that project to a specific directory and set of sub directories.

At the same time, we could switch .torus.json to be a .torusrc file, removing a concept (difference between .torusrc and .torus.json) while supporting recursive .torusrc files with proper inheritance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant