avoid Array#find in Puppet::Resource::Catalog::Puppetdb#find_resource
Merge pull request #503 from github/find-resource-opt

Avoid Array#find in Puppet::Resource::Catalog::Puppetdb#find_resource
(PE-618) Don't suggest 'postgres' for pe-puppetdb on debian

We're going to be installing pe-postgresql whenever we need to in PE, so we
shouldn't suggest to the user that they also install postgres.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Merge pull request #528 from MosesMendoza/maint/master/dont_suggest_postgres_on_pe

(PE-618) Don't suggest 'postgres' for pe-puppetdb on debian
(#20801) allow */* wildcard

Curl sends an "Accept: */*" header by default, which matches
"application/json", according to the RFCs. This patches allows this
wildcard to be accepted when interacting with puppetdb's REST API.
doc: remove Accept header from examples

Since d9634b09c it's no longer required to explicitly set the Accept
header when using curl. The examples can thus be slightly simplifed.
making the debian init actually use the PIDFILE to test if the process is active
Merge pull request #530 from lofidellity/master

Fixing the puppetdb init script
Remove Accept: header from curl tests

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #529 from mfournier/accept-wildcard

Accept wildcard
(maint) Fix PE PuppetDB Accp Tests

Prior to this commit, the puppet enterprise puppetDB acceptance tests
did not work on Puppet Enterprise. This commit has
converted the open source puppet tests to work on both open source and
puppet enterprise.
Merge pull request #531 from briancain/maint/master/fosstests_for_pe

Maint/master/fosstests for pe
Revert "(maint) Fix PE PuppetDB Accp Tests"

This reverts commit 618d1d99ece56cc9d987bee0cd2b124617b13f86.

We are reverting this change temporarily because there have been
upstream changes that make the tests incompatible with PE.
Merge pull request #532 from briancain/revert-pe-acceptance-changes-for-now

Revert "(maint) Fix PE PuppetDB Accp Tests"
(maint) Fix PE PuppetDB Accp Tests

Prior to this commit, the puppet enterprise puppetDB acceptance tests
did not work on Puppet Enterprise. This commit has
converted the open source puppet tests to work on both open source and
puppet enterprise.
(maint) Fix Helper tcp socket connection

Prior to this commit, there was a problem with a function in helper
that caused FOSS tests to fail for PuppetDB. This commit fixes that.
(maint) Fix Curl Command for Cent5

Prior to this commit, the curl command used in this test did not work
for Cent5. This commit fixes that problem.
(maint) Fix file with binary template curl output

Prior to this commit, the test file with binary template was printing
out the data from a curl statement, which messed up Jenkins. The data
that the curl statement was printing out contained invalid UTF-8 bytes
which Jenkins could not parse. This commit fixes that issue.
Merge pull request #537 from cprice-puppet/maint/master/cherry-pick-pe-acceptance-test-commits

Maint/master/cherry pick pe acceptance test commits
(packaging) Use the packaging loader for tasks

The packaging repo now uses an explicit loader which handles loading the
various rake tasks in packaging. This commit updates the puppetdb Rakefile to use
the loader instead of a blind glob of the ext/packaging/tasks directory. We
move this load into the rescue LoadError block because the packaging repo won't
always be there.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>