Try to install postgresql via the Puppet module.
slightly bogus way to set up PostgreSQL