Fix spelling of Erik

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #437 from kbarber/maint/spell_dalens_name_correctly

Fix spelling of Erik
[packaging] use packaging repo data to determine PE build

Part of the new Release packaging workflow involves sending builds to jenkins
to do our work for us. However, when we build with the packaging repo via
jenkins, we don't pass environment variables up in anyway. Instead, all data is
stored in a build parameters file. With puppetdb, we store whether or not we
are building PE in the build parameters file. This is lost though, because
currently we only check for PE build in the top-level Rakefile by querying the
environment variable PE_BUILD. To enable builds to succeed with the packaging
repo jenkins workflow, we need to also attempt to query the data in the build
parameters which is made available via the @build object via its build_pe
instance variable. This commit updates the Rakefile to query this first if set,
and then fall back to environment variable.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
[packaging] Update clobber task for lein 2 target

Lein 2 builds jars in `target` rather than in the top-level of the project.
This commit updates the clobber job to remove jars in `target` rather than at
the top level.

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

[packaging] Update PE package building for new workflow
[packaging] Update PE versions in packaging

The packaging in puppetdb is still hardcoded to look at 2.8 and 2.7 for PE
versions by default. This commit updates these 2.9 to reflect where PE
dependencies can be resolved.

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

[packaging] Update PE versions in packaging
Remove natty from distro list in packaging

Natty is end of life, so we no longer build packages for it.
Merge branch 'remove-natty'
(maint) Add f18 mocks to build_defaults

Fedora 18 has been released to the world, so we should build packages for it.
This commit adds the fedora 18 mocks to the build_defaults so we can easily
supply fedora 18 packages.
Merge pull request #441 from haus/maint/master/add_f18_mocks_to_build_defaults

(maint) Add f18 mocks to build_defaults
Add a product-name setting to the config file

This allows either puppetdb or pe-puppetdb, defaulting to the former.
This will let us know (basically) whether we're running on PE or not,
although it does use the honor system.
(#17839) Disable update checking when product is pe-puppetdb

This will allow us to prevent having individual components of PE
checking for updates at the same time as PE itself.
Docs: Add authenticated curl example to tutorial.markdown and link to curl.markdown for more details
Merge pull request #445 from nfagerlund/tutorial_link_adjustment

Docs: Add authenticated curl example to tutorial.markdown and link to cu...
Add utils for capturing log output during testing

This commit adds a namespace for logging-related test utility
functions.  Therein, it addsmacro and a couple of functions.
The macro, `with-log-output`, simplifies the process
of temporarily redirecting and capturing logging output during
tests.  The utility function `logs-matching`
provides a means for searching through the captured logs for log
entries whose log messages match a specified regular expression
pattern.
Generalize and improve our utility function for parsing CLI args

At some point in time the clojure CLI library that we use to parse
stopped supporting a flag to indicate 'required' arguments.  Thus,
we were getting much farther into the code than we should have been
if you left off, e.g., the `--config` option to the `services`
program.  This also resulted in useless, unintuitive error messages.

Additionally, the function that we were providing in `utils` to
generalize our CLI argument handling for other PuppetDB command-line
tools included more arguments than would be applicable to some
tools.

This commit makes the `cli!` more general, and moves the app-specific
options back into the apps themselves.  It also adds support for
checking for `required` arguments and fails with a reasonable error
message if you are missing any.
Merge pull request #394 from cprice-puppet/feature/master/logging-test-utils

Add utils for capturing log output during testing
Merge pull request #433 from cprice-puppet/maint/master/generalize-cli-validation

Generalize and improve our utility function for parsing CLI args
First basic working version of catalog import/export

This commit adds two new cli commands (`import` and `export`),
which can import and export catalog data (as .json files) to
and from PuppetDB.

It also moves the existing `catalog` endpoint (which was intended
to provide support for doing graph visualizations of a catalog) and
all corresponding code to new namespaces named `graphviz-catalog`.
This change makes room for a new `catalog` endpoint that simply
returns catalogs in our normal wire format, without the added
functionality for counts and aggregation that were needed for the
graphviz versions.

This commit is still not quite shippable; it is missing (at least)
the following:

* ability to configure host/port for import/export commands
* read/write data to/from tarballs rather than just a directory
  full of `.json` files
* add a metadata file which indicates which version of the
  `replace catalog` command should be used during imports
* add shell scripts to simplify the use of these tools from the
  command line.