Port PuppetDB to use kitchensink
PDB-85 Fix report export format

Three new parameters were added to the events end-point that were really
derived from the report of the event, and so aren't necessary for later
injection via import.

This was blocking anonymization and import from working as expected. This patch
ensures those parameters are stripped from the export correctly.

This bug wasn't seen because our tests do not always generate events, so
the invalid parameters never surfaced. As a safety guard for future
generations I've made sure that all the places that look like they could
do with some report events, I've ensured these exist now - even if they
probably haven't got any issues it seems like the correct thing to do
here.

To aid in this endeavour I've back-ported Ryan Seniors' two methods:

- run_agents_with_new_site_pp
- create_remote_site_pp

Since this setup was becoming quite common, this helped cleanup some of
our existing code as well.

Signed-off-by: Ken Barber <ken@bob.sh>
Add exports puppet face

Prior to this commit I was asked by @kbarber to PR a link to a face
I wrote for querying puppet exports from the command line.
I attempted to match the standard markdown examples that were already
there.
Merge branch 'add_exports' into 1.5.x

* add_exports:
  Add exports puppet face
Merge pull request #758 from kbarber/ticket/1.5.x/PDB-85-anonymize-for-reports-broken

PDB-85 Fix report export format
PDB-109 Ensure basic_collection tests work on a clean database

Some of the data from previous tests was being leaked. This patch adds a clear
and restart action to the start of the test to ensure there is no existing
data before these tests run.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #761 from kbarber/ticket/master/PDB-109-fix-ci-errors

PDB-109 Ensure basic_collection tests work on a clean database
Update kitchensink dependency to released 0.1.0 version
Merge pull request #756 from nwolfe/maint/master/kitchensink

Port PuppetDB to use kitchensink
Fix reference to configure-logging! function

This was broken during the kitchensink move, this patch puts it back
from the com.puppetlabs.utils.logging now. Without this patch users
of the `benchmark` sub-command will receive an exception.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #762 from kbarber/maint/master/fix-reference-to-configure-logging

Fix reference to configure-logging! function
Fixed the wire_format links on the catalogs API page, removed some HTML
markup that wasn't rendering correctly in a code example
Merge pull request #763 from senior/maint/1.5.x/pdb-94-broken-wire-format-links

PDB-94 - Fixed the wire_format links on the catalogs API page
Merge branch '1.5.x'

* 1.5.x:
  Fixed the wire_format links on the catalogs API page, removed some HTML markup that wasn't rendering correctly in a code example
  PDB-109 Ensure basic_collection tests work on a clean database
  Add exports puppet face
  PDB-85 Fix report export format
Run gem install of activerecord with greater verbosity

We keep getting activerecord gem installation problems, this patch changes
the verbosity of that installation so we can possibly see what is going
wrong. As this is intermittent its hard to test it in an isolated way, so
leaving this modification in source until it happens again seems a reasonable
approach.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #764 from kbarber/maint/1.5.x/increase_verbosity_of_gem_install

Run gem install of activerecord with greater verbosity
Set a default timeout for sleep_until_queue_empty

During acceptance test writing, this method may spin forever if the queue
doesn't clear properly (due to a fault often in the authors code most
probably).

To stop this from happening, we should set a reasonable default for this,
as we should constrain all tests from infinitely looping if we can. While
the parameter can be overriden at usage time, having a default will mean
infinite loops don't occur by accidental misusage.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #765 from kbarber/maint/1.5.x/set-a-default-timeout-for-sleep_until_queue_empty

Set a default timeout for sleep_until_queue_empty
Merge remote-tracking branch 'upstream/1.5.x'
Add a migration for historical fact storage

These tables will now house the fact values. This particular migration
is taking place to enable deduplication of fact storage when temporal
configuration is activated and users want to historically store all
fact values.