Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1842  / 2 Years ago, mon, august 29, 2022, 4:11:25

juju version 2.0-beta1-trusty-amd64



juju list-controllers
CONTROLLER MODEL USER SERVER



Why it is not listing any controllers. I have created a maas environment using quickstart -i. environments.yaml is also created as below.



I tried to switch the environment but getting the error. Here is the yaml file placed at /root/.juju/environments.yaml



default: maas 
environments:
maas:
default-series: trusty
maas-oauth: <key pasted here from the maas GUI>
maas-server: http://192.168.6.11/MAAS
type: maas


When try to add a cloud using juju add-cloud its also giving the error:



error: Usage: juju add-cloud


where is the cloud.yaml file ? I have also tried:



juju add-cloud maas envoirnments.yaml 
ERROR open envoirnments.yaml: no such file or directory


but still no luck.



Can someone please mention the exact steps to setup juju2/MAAS? it appears juju2 has made some major changes. Bootstrapping is also not as it was before.


More From » juju

 Answers
3

You'll need to create a new file; cloud.yaml is an arbitrary file name, and you can put it anywhere. The contents should look like this:



clouds:
my-maas:
type: maas
auth-types: [oauth1]
endpoint: http://192.168.6.11/MAAS/


Then run juju add-cloud my-maas <path/to/your/cloud-yaml/file> to add the cloud to Juju.



You'll then need to add a credential for this by editing ~/.local/share/juju/credentials.yaml, so it contains:



credentials:
my-maas:
maas:
auth-type: oauth1
maas-oauth: <API token from MAAS>


In 2.0.0-beta2, you'll be able to add credentials interactively using "juju add-credential". You won't be expected to edit the credentials file directly.



Once you've got those two files set up, you should then be able to run:



juju bootstrap <controller-name> my-maas


[#16288] Tuesday, August 30, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aveerakfas

Total Points: 106
Total Questions: 148
Total Answers: 129

Location: Monaco
Member since Sun, Jan 1, 2023
1 Year ago
;