Postgresql data directory
Postgresql data directory

- The govuk_postgresql::server relies on postgresql::server to install
  the postgresql package. postgresql::server has a class called
postgresql::server::initdb. This class created the
'/var/lib/postgresql/{version}/main' directory. However,
'/var/lib/postgresql/{version}/' doesn't get created by installing the
package. Since the directory tree is not present , puppet fails while
trying to create '/var/lib/postgresql/{version}/main'.

- To address this issue, we are capturing the version number derived by
  the vendor module (class postgresql::globals) and creating the data
directory tree.

Solo: da39a3ee5e6b4b0d3255bfef95601890afd80709@suthagarht

alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet