$ juju add-cloud
Cloud Types
maas
openstack
Select a cloud type: openstack
Enter a name for the cloud: os1
Auth Types
oauth1
oauth2
access-key
userpass
Select one or more auth types separated by commas: oauth2, user-pass
Invalid option: "user-pass"
Select one or more auth types separated by commas: oauth2, userpass
Enter region name: foo
Enter the API endpoint url for the region: https://goo.com
Enter another region? (Y/n):
Enter region name: bar
Enter the API endpoint url for the region: http://bar.com
Enter another region? (Y/n): n
$ more ~/.local/share/juju/clouds.yaml
clouds:
os1:
type: openstack
auth-types: [oauth2, userpass]
regions:
bar:
endpoint: http://bar.com
foo:
endpoint: https://goo.com