Support for different environments files

Bug #1147136 reported by Ben Howard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Won't Fix
Low
Menno Finlay-Smits

Bug Description

I need the ability to have to diffent environments.yaml files to support different environments and different levels of access. For example, I could have a "production", "beta", "alpha" environemnts.yaml file. The use cases for this is to allow people to share environments in a production environment, store complete files in a shared repository, and to support enterprise type workflows.

Example Juju:
     juju --config /nfs/juju/production.yaml -e us-east-1...

Revision history for this message
William Reade (fwereade) wrote :

You can currently switch between environments.yaml files by putting them in different dirs (production, beta, alpha) and setting $JUJU_HOME to the appropriate value per command.

It's not appropriate to set a different source for environments.yaml: juju stores important environment info (like the CA cert), by environment name, next to the environments.yaml file in which it is defined, and the risk of catastrophe caused by using two such files in the same dir seems to outweigh the inconvenience of specifying the environment variable.

But, hmm; would something like `--home envs/production` be useful to you? If so, that'd be very simple.

Changed in juju-core:
status: New → Triaged
importance: Undecided → Wishlist
tags: added: bitesize cmdline
Revision history for this message
Curtis Hovey (sinzui) wrote :

--home would indeed help qa team which is working with multiple homes.

tags: added: hours
removed: bitesize
Curtis Hovey (sinzui)
tags: added: improvement
Curtis Hovey (sinzui)
Changed in juju-core:
importance: Wishlist → Low
Ian Booth (wallyworld)
Changed in juju-core:
assignee: nobody → Menno Smits (menno.smits)
Ian Booth (wallyworld)
Changed in juju-core:
status: Triaged → In Progress
milestone: none → 1.19.2
Revision history for this message
Menno Finlay-Smits (menno.smits) wrote :

The Juju home directory is required by the juju tool during preparation for command line processing creating a chicken-and-egg problem: --home can't be used until command line processing is done and command line processing can't be done without knowing the Juju home directory.

After discussing with axc and fwereade we've decided that this ticket isn't going to get done.

The easiest way around this is to just do:

    JUJU_HOME=some/path juju ...

Changed in juju-core:
status: In Progress → Won't Fix
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.19.2 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.