Work with puppetlabs-postgresql version 3+

This supersedes https://github.com/theforeman/puppet-foreman/pull/115
and should not be merged until we drop puppet 2.6 support.