(maint) Add RHEL7 to list of mocks to build against

Only adding for RHEL7 x86_64, since there is currently no 32-bit RHEL7 platform.
(maint) Add RHEL7 to list of mocks to build against

Only adding for RHEL7 x86_64, since there is currently no 32-bit RHEL7 platform.
Merge pull request #878 from mckern/1.5.x

(maint) Add RHEL7 to list of mocks to build against
(maint) Point RHEL7 build_default entry to x86_64, not i386

Previous commit pointed at i386 by mistake.
Merge pull request #879 from mckern/1.5.x

(maint) Point RHEL7 build_default entry to x86_64, not i386
(maint) Updated RHEL7 support in 1.5.x branch

These changes should fix packaging for RHEL7 and allow RPMs to
be cleanly assembled again.
PDB-469 - Support Anonymizing Facts

This commit adds support for the anonymization of facts. The levels of
anonymization supported are:

 - none - no anonymization
 - low - only values with a fact name of secret, password etc
 - moderate - recognized "safe" facts are untouched, recognized
              facts with sensitive information (i.e. ipaddress)
              have their values anonymized
- full - all fact names and values are anonymized
Merge branch '1.5.x' into 1.6.x

* 1.5.x:
  (maint) Updated RHEL7 support in 1.5.x branch
  (maint) Point RHEL7 build_default entry to x86_64, not i386
  (maint) Add RHEL7 to list of mocks to build against

Conflicts:
	ext/build_defaults.yaml
	ext/redhat/puppetdb.spec.erb
(maint) Replace shell logic for OS release with Facter

To generate the correct init script components, install.rake
was shelling out to get a static field from /etc/redhat-release.
This is a fragile technique and Facter uses a much more robust
technique to derive the correct value across numerous RPM-based
platforms. This technique was part of the 1.7.x Facter branch,
so a build-time dependency has been added on Facter 1.7.0 or greater.
Merge pull request #883 from mckern/1.6.x

(maint) Replace shell logic for OS release with Facter
Tighten the fact-value anonymization for the moderate profile
(maint) Explicitly set LANG in RPM spec file

LANG is set to 'C' by default, which is problematic because numerous
parts of Ruby have to parse UTF8 files. This will solve a problem with
Fedora 19, which has an umlaut in the release name. If LANG is
set to 'C', the umlaut then leads to unexpected values returned from Facter.
Merge pull request #882 from senior/ticket/master/pdb-469-anonymize-facts

PDB-469 - Support Anonymizing Facts
Merge pull request #884 from mckern/1.6.x

(maint) Explicitly set LANG in RPM spec file
Merge branch '1.6.x'

* 1.6.x:
  (maint) Explicitly set LANG in RPM spec file
  (maint) Replace shell logic for OS release with Facter
  (maint) Updated RHEL7 support in 1.5.x branch
  (maint) Point RHEL7 build_default entry to x86_64, not i386
  (maint) Add RHEL7 to list of mocks to build against
  (maint) Add RHEL7 to list of mocks to build against

Conflicts:
	ext/redhat/puppetdb.spec.erb
PDB-473 Support POST using application/json data in the body

This patch adds to the commands end-point the ability to simply POST using
application/json with the JSON content in the body.

It also switches the terminus to use this mechanism.

We found that the url encode/decode required to support x-www-form-urlencoded
was actually quite an overhead in a number of ways:

* The urlencode on the terminus added overhead
* The urldecode in the server added overhead
* The interim strings created during this encode/decode process can get quite
  large increasing the amount of garbage collection required

This feature has been implemented by providing a new middleware that will move
the body into the parameter :body-string of the request when the content-type
is not set to application/x-www-form-urlencoded. This provides a convenient
backwards compatible layer so that the old form url encoding can still be
supported for older versions of the API.

Signed-off-by: Ken Barber <ken@bob.sh>