Personally I'd just put the call to `apt-get` and then `psql` into a shell script.
Either way, set the provisioner. Either do it in vagrant provisioning, or if that takes to long, build a base box with Packer and put the provisioner there.
Edit: or for a simpler use, look on Vagrantcloud.com and find a base box that has what you want, and run that.