/var/lib/maas/secret Doesn't exist


At what point is /var/lib/maas/secret created during maas-region-api init? I’ve run dbupdate and createadmin, and if I do maas apikey --username admin it returns an api key with 3 segments, presumably one of those segments is the secret, but /var/lib/maas/secret doesn’t exist.

EDIT: Looks like I’m not calling maas init, so I’m replacing my createadmin stage with init to see if that does the trick…


Starting the service was the bit I was missing. Nothing to see here!