I want to be able to deploy charms both locally and to EC2. What's an example environments.yaml that has both entries?
And how can I switch between them so I can just deploy to EC2 and/or LXC?
|
I want to be able to deploy charms both locally and to EC2. What's an example environments.yaml that has both entries? And how can I switch between them so I can just deploy to EC2 and/or LXC? |
|||
|
|
|
You can have as many environments as you want in .juju/environments.yaml , and then set one as the default. Here is my sanitised environments.yaml with ec2, a private openstack cloud, and my local machine:
I can select the environment by appending the '--environment' or '-e' argument to any juju command, so
Returns different things than just
Also each environment has different configuration options depending on the provider, see the following sections of the juju documentation: |
||||
|
|