allow configuring the postgres version and exit on errors

Sure. We use 14.04 in production.