balena-io / open-balena-api

The core API of openBalena
https://balena.io/open
GNU Affero General Public License v3.0
58 stars 29 forks source link

Mechanism to seed a new open-balena instance? #1420

Open shaunco opened 10 months ago

shaunco commented 10 months ago

Is there a proper mechanism for seeding a new open-balena instance with orgs, users, api-keys, fleets, and fleet-wide config/env variables? For our local machine test environment we'd like to always seed open-balena with the exact same details, and for dev/prod environments we'd like to automate as much as possible (rather than having human driven run-book actions).

Things I've tried:

Really what I'm looking for is something like migrations that is guaranteed to run once on any new API cluster (uninitialized DB)... and none of the above seem like "the right way".

shaunco commented 9 months ago

@thgreasi / @Page- - any thoughts on this?

Page- commented 7 months ago

Other than the options you've covered @shaunco the only things that come to mind are: