Hi all
So I've tried out some stuff and it seems I'm stuck. Creating new users and creating new keys for the currently logged in user works but there is no way to create keys for other users. Creating an api key requires being logged in but to login you have to have an api key... Any ideas how to solve this? PS: I'm currently using MAAS 1 but we're planning to move to MAAS and Juju 2.0 when they release. Kind regards Merlijn 2016-08-05 23:42 GMT+02:00 Andres Rodriguez <[email protected]> : > Hi All, > > If you want to create admin users and new API keys, and you are connected > to the MAAS region controller, you can do so with: > > - maas createadmin > - maas apikey > > Otherwise, you can do it via the API with the endpoints that Rick has > shared above. > > Hope this helps. > > > On Thu, Aug 4, 2016 at 9:04 AM, Rick Harding <[email protected]> > wrote: > >> I'd be curious what MAAS folks say. I poked at their API docs and it >> looks like you have a call to create a user: >> >> https://maas.ubuntu.com/docs/api.html#users >> >> but to create the api token it seems like a special call "for the >> currently logged in user" >> >> https://maas.ubuntu.com/docs/api.html#logged-in-user >> >> I wonder if there's another way of going about that. >> >> As for configuring the juju client, you can write out the config files >> manually, script them with shell call outs, etc. >> >> >> >> On Thu, Aug 4, 2016 at 3:05 AM Merlijn Sebrechts < >> [email protected]> wrote: >> >>> Hi all >>> >>> >>> I'd like to automate the creation of Juju environments on MAAS. Automate >>> stuff like: >>> >>> - Creating users >>> - Creating API keys >>> - Configuring the Juju client >>> >>> Is there something available that does this? If not, I'll write it >>> myself but I wanted to check the list first. >>> >>> >>> >>> >>> Kind regards >>> Merlijn >>> -- >>> Juju mailing list >>> [email protected] >>> Modify settings or unsubscribe at: https://lists.ubuntu.com/ >>> mailman/listinfo/juju >>> >> > > > -- > Andres Rodriguez > Engineering Manager, MAAS > Canonical USA, Inc. >
-- Juju mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
