juju2: format of clouds.yaml for juju add-cloud

Andreas Hasenack andreas at canonical.com
Tue May 3 13:16:31 UTC 2016


On Tue, May 3, 2016 at 10:09 AM, Andreas Hasenack <andreas at canonical.com>
wrote:

> On Wed, Apr 20, 2016 at 7:07 PM, Andrew Wilkins <
> andrew.wilkins at canonical.com> wrote:
>
>> On Thu, Apr 21, 2016 at 2:44 AM Andreas Hasenack <andreas at canonical.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I was trying to add another "cloud" so that I could have multiple MAAS
>>> servers available to bootstrap on, without having to type the MAAS IP
>>> everytime in the bootstrap command line, and pass --credential.
>>>
>>> Some reading lead me to juju add-cloud, but the documentation only has
>>> examples for openstack clouds, like:
>>>
>>> clouds:
>>>   <cloud_name>:
>>>     type: <type_of_cloud>
>>>     regions:
>>>       <region-name>:
>>>         endpoint: <https://xxx.yyy.zzz:35574/v3.0/>
>>>         auth-types: <[access-key, oauth, userpass]>
>>>
>>>
>>> That does not translate immediately to a MAAS configuration. I asked for
>>> help on IRC and mgz provided me with this syntax:
>>>
>>> clouds:
>>>   some-name:
>>>     type: maas
>>>     auth-types: [oauth1]
>>>     endpoint: 'http://<IP>/MAAS/'
>>>
>>>
>>> Are there other options that could be used here, specific to the "maas"
>>> type? What about other cloud types, what changes in this template?
>>>
>>
>> Everything that you can use is used here:
>> http://streams.canonical.com/juju/public-clouds.syaml. So the things in
>> there of note are "storage-endpoint" and "regions".
>>
>>
>
> What's "domain-name"?
> andreas at nsn7:~$ juju add-credential cistack
>   credential name: cistack
>   auth-type: userpass
>   username: andreas
>   password:
>   tenant-name: andreas
>   domain-name: ?????
> credentials added for cloud cistack
>
> It's not used in http://streams.canonical.com/juju/public-clouds.syaml,
> nor is it documented in
> https://jujucharms.com/docs/devel/clouds#specifying-additional-clouds. I
> can take a guess (DNS domain name), but I don't know where and how it's
> used. juju1 didn't have that, and nor does the novarc file given to me by
> horizon.
>
>

Looks like juju 2b6 also doesn't know what it is:
$ juju-2.0 bootstrap cistack-controller cistack
WARNING unknown config field "domain-name"
ERROR authentication failed.
(...)


I'll file a bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20160503/e6ee4f26/attachment.html>


More information about the Juju mailing list