I’m building a MAAS setup with each service (rack, region, db) in it’s own LXD container, with the MAAS components installed via snap in each container, and postgresql in it’s own also.
In the old days, I would use maas region dbupgrade to init a postgres instance, but it looks a bit different right now - is there any guidance on this? I couldn’t find much in the docs
Looking into this further it seems like postgres as a snap is broken. There seems to be a maas-test-db Snap specifically for the purpose of providing a snap’d DB to MAAS, but it looks like it only listens locally, and because of Snap confinement, is non-trivial to get to listen on an external IP port to another host.
With my goal here being scalability and immutability (adding more regions, racks or db members and painlessly failing over when one is (re)moved) I can either just put PGSQL in a container on its own, or run it as a docker container.