Commit graph

8 commits

Author SHA1 Message Date
Ken Barber
f6f6e55b33 Cleanups, missing doc items and new test_url capability
This provides a number of cleanups as the code has been unloved for a while.

I've added the ssl-* parameters the robinbowes added in his last patch to the
docs, and found some other cleanups as well where applicable.

I've added the ability to override the test_url also, so that in the future
if a user wishes to they can customize this.

Signed-off-by: Ken Barber <ken@bob.sh>
2014-10-07 15:06:54 +01:00
Ken Barber
c4f71cc8c3 Use the /v2 metrics endpoint instead of /metrics
The base url /metrics has long been a deprecated URL and creates noise when
tested like this. Not to mention in current puppetdb master we are removing
/v1 support so this test starts to break.

By making it /v2, we still afford support for most of our 1.x users, and
since /v2 will be around for quite some time this seems like a suitable
temporary step.

In the future a generic URL should really be provided by PuppetDB as something
that is more permanent and generic.

Signed-off-by: Ken Barber <ken@bob.sh>
2014-02-11 20:35:13 +00:00
Dan Bode
cfffea0a79 Allow puppetdb conn validation when ssl is disabled
for my use case, I am not able to validate the
ssl endpoint b/c I am creating my puppet certificates
during my puppet run, so they are not available to
the http get request.

This patch adds a new resource parameter to
the puppetdb_conn_validator that allows it
to make a non-ssl connection. This allows me
to declare my own http only resource that I
can use to verify the puppetdb connection.
2013-06-06 17:38:27 -07:00
Ken Barber
15fb00c9f7 Add initial rspec-system tests and scaffolding
This adds a basic test to run the standard 1 node setup until it succeeds.

This also fixes a bug with the connection validation facilities. Before this
patch we would keep retrying the connection to PuppetDB until the timeout
expired, this patch fixes that bug making provisioning faster and well, more
reliable. I've also increased the timeout as some systems take longer than
15 seconds for PuppetDB to start.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-04-19 23:26:15 +01:00
Karel Brezina
7a1557a79f Added support for Java VM options 2013-04-12 15:24:52 +02:00
fhrbek
5f5a00f3a1 Support for remote puppetdb 2013-04-12 15:03:54 +02:00
Chris Price
783b595fc7 Make puppetdb startup timeout configurable
In some environments, puppetdb can take longer than 10 seconds
to start up.  Prior to this commit, that value was hard coded
and the module would sometimes fail when it wouldn't have failed
with a slightly larger timeout.  This commit makes the timeout
configurable, and also increases the default value to 15 seconds.
2012-10-16 17:42:02 -07:00
Chris Price
8fbda3c4d6 Use ini_file to manage settings, and add validation
This commit does the following:

* Use the new inifile module to manage puppet.conf
* More comprehensive management of config files
* Validate database connectivity before applying puppetdb
  config changes
* Validate puppetdb connectivity before applying puppet
  master config changes
* Documentation
2012-09-17 15:26:32 -07:00