For my lab I’ve used the Interactive Mode of JUJU and run the following command, obviously you’ve to change with your data. From MAAS:
$: juju add-cloud
Since Juju 2 is being run for the first time, downloading latest cloud information. Fetching latest public cloud list... Your list of public clouds is up to date, see `juju clouds`. Cloud Types
Select cloud type: maas
Enter a name for your maas cloud: maas-cloud
Enter the API endpoint url: http://your_Maas_IP:5240/MAAS
In order to access our cloud, JUJU needs to know how to authenticate itself with MAAS and the way to make that is use the following command:
$: juju add-credential maas-cloud
Enter credential name: rich
Using auth-type "oauth1".
Enter maas-oauth: (paste the MAAS Keys copied)
Credential "rich" added locally for cloud "maas-cloud".
to list our credentials use:
then run the bootstrap
$: juju bootstrap --constraints tags=juju maas-cloud maas-controller --debug