puppetlabs/puppetlabs-postgresql — pull request #210 by mnencia (2013-07-17 10:21:42+00:00)
Title: pgdg-keyring package requires pgpg repository

Putting pgdg-keyring in required_packages parameter is a kind of circular dependency as the apt::source resource will try to install it before to add the apt source line.

However the pgpd-keyring package is not really required for the very first run, because of key and key_source parameters.

Moving it to a separate package resource will avoid the error.