Change SSL setup to use master SSL keys instead of agent.
Merge pull request #171 from KushalP/master

Make use of (not= ...) consistent
Allow introspection of version number

This patchset stores the auto-computed version number for PuppetDB:

* on-disk, inside of a generated JAR file
* in-memory, in `com.puppetlabs.puppetdb.cli.services/version`

This is done by modifying our build file slightly to add a custom metadata
field to build outputs, and adding a func that can parse that field back into
memory.

Signed-off-by: Deepak Giridharagopal <deepak@puppetlabs.com>
Merge pull request #170 from grimradical/version_stamp

Allow introspection of version number
Correct the description of payload.

The payload may contain any JSON content, with no restrictions on type.
Previously it indicated that it was a string, which was not accurate.
Minor corrections to the README
Merge pull request #175 from cprice-puppet/maint/master/minor-readme-changes

Minor corrections to the README
Sort unordered metaparameter values during catalog serialization

You have a resource with a metaparameter, `tag`, with a value of `["c", "b",
"a"]`. We generate a catalog and that catalog is sent to PuppetDB. The next
time Puppet runs, you get the same resource, with the same metaparameter `tag`,
only the value is now `["a", "b", "c"]`. That catalog is also sent to PuppetDB.

Everything works correctly, however PuppetDB will think that the second catalog
is different from the first catalog. That's okay in terms of correctness, but
it's slower...`tag` (and several other metaparameters) are inherently
unordered. We should treat both catalogs the same because, semantically, they
are.

This patchset munges catalogs prior to submission to PuppetDB such that all
inherently unordered metaparameters are sorted. That way the output is the same
no matter the initial ordering.

You may be wondering how it's possible that Puppet could generate 2 different
orders for the same metaparam. But imagine that you're using the spaceship
operator to set dependency relationships on resources. Puppet doesn't order the
results of a resource collection operation. Something like this, for example,
can trigger this bug:

   Yumrepo <| |> -> Package <| |>

Signed-off-by: Deepak Giridharagopal <deepak@puppetlabs.com>
Merge pull request #174 from grimradical/sort-unordered-metaparams

Sort unordered metaparameter values during catalog serialization
Fix puppetdb.conf parser to accept hostnames

This regex was looking only for word characters, so servers like
foo.example.com wouldn't work because of the . characters. Obviously
this is an extremely common case, and absolutely needs to be supported.
Default port for puppetdb.conf should be 8081

In jetty.ini by default we set plaintext port to 8080 and ssl port to
8081. Because puppet must talk to puppetdb over ssl, it should also
default to talking to 8081.
Merge pull request #177 from nicklewis/fix-config-parsing

Fix puppetdb.conf parser to accept hostnames
Fix default port numbers in readme
Merge pull request #178 from cprice-puppet/maint/master/readme-port-nums

Fix default port numbers in readme
Fix `rake terminus` task to use existing files

This was assuming the puppet lib files were still in ext/master, but now
they live in puppet.
Perform garbage collection at startup

This simply re-orders the sleep vs the garbage collection in
the garbage collection thread.
Merge pull request #180 from cprice-puppet/feature/master/gc-at-start

Perform garbage collection at startup
Support a "version" file instead of `git describe`

When running from source but not a git repository (for instance, after
copying the code to another machine to build a package..), lein fails
because it can't find the version. This allows the use of a file called
"version" which contains the version. If this file exists, it will be
used preferentially over `git describe`.
Merge pull request #181 from nicklewis/support-version-file

Support a "version" file instead of `git describe`
Revert "Correct the description of payload."

This reverts commit 62b1d46d79e66076c0f8be44d3259f7a1d4b8631.

We should make this change post-1.0, and alongside a corresponding change to
our own command processors to avoid doubly-deserializing things.