Commit graph

22 commits

Author SHA1 Message Date
Ken Barber
3c71c5f8cf Update test fixtures and module dependencies to use postgresql 3.1.0
Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-27 01:33:29 +02:00
Ken Barber
78a2530e03 Ensure ntpdate executes early
This is to avoid any time slew problems related to ntp shifting the time
later on in the background.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-27 00:11:02 +01:00
Ken Barber
683bda3e3e Fix idempotency tests
Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-22 13:22:05 +01:00
Ken Barber
cce5324642 Simplify puppet module install parts for testing
Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-22 12:54:08 +01:00
Ken Barber
603df7381d (GH-93) Switch to using puppetlabs-postgresql 3.x
This updates the module to be able to use puppetlabs-postgresql.

Since this change is a major change, it marks this patch as a breaking change.

I have prepared a suitable amount of upgrade notes for upgrading to this later
version of the module plus removed anything marked deprecated.

As cleanup, I've removed the troublesome 'tests' directory in favour of good
README.md documentation. I've also removed any puppet docs from each module
until such times as puppet docs become automated through the forge. This is
just to avoid contributors having to double their efforts - the README.md
is the authority now.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-21 18:43:41 +01:00
Ken Barber
d3bf0a09ae (GH-91) Update to use rspec-system-puppet 2.x
This will bring us up-to-date with the latest version of the rspec-system-*
family.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-21 14:25:28 +01:00
Ken Barber
3306f1f265 This will pin the installation of puppetlabs/postgresql to version 2.5.0
Since version 3.0.0 is now released, we want to pin against the old revision
everywhere. We already pin in the Modulefile and unit tests, we just forgot
to do it for the rspec-system tests.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-18 16:40:21 +01:00
Ken Barber
620c9cf6c9 (GH-73) Switch to puppetlabs/inifile from cprice/inifile
cprice/inifile is deprecated, this patch changes the module to use inifile's
new home puppetlabs/inifile.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-07-31 22:52:25 +01: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
b45fca9689 Merge pull request #64 from cprice-puppet/feature/master/support-enabling-report-processor
Add support for enabling puppetdb report processor
2013-05-28 16:15:08 -07:00
Chris Price
68f2889651 Update README, add rspec-puppet tests
Add docs to readme, add basic rspec-puppet tests for new
report_processor class, and fix broken rspec-system test.
2013-05-24 12:48:34 -07:00
Chris Price
148bddbf30 Add support for enabling puppetdb report processor 2013-05-23 14:54:49 -07:00
Chris Price
b79214066a Use fqdn for ssl listen address instead of clientcert
Chris Barker reported that the default value of `$::clientcert`
was not the best choice for some things we were using it for
in the module; specifically, for the default value of
the jetty ssl listen address.  He suggested using `$::fqdn` instead.

This commit makes that change; rspec-system tests pass, but I'm
not 100% sure that there aren't edge cases that would be
affected by this.
2013-05-21 16:35:42 -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
fhrbek
5f5a00f3a1 Support for remote puppetdb 2013-04-12 15:03:54 +02:00
Christian Berg
1a8d7c6601 Ruby 1.8.7 doesn't like a comma after the last hash entry. 2013-04-10 00:51:58 +02:00
Christian Berg
5f32741c83 Add unit tests for disabling SSL in puppetdb::server::jetty_ini 2013-04-10 00:31:43 +02:00
Christian Berg
d14e179d86 Add tests for puppetdb::server::jetty_ini 2013-04-10 00:18:31 +02:00
Ken Barber
5a72d6d82b Cleaned up ghoneycutt's code a tad
Signed-off-by: Ken Barber <ken@bob.sh>
2013-04-09 13:27:25 +01:00
Garrett Honeycutt
fc3f8dc747 allows for 0 _ttl's without time signifier and enables tests 2013-04-08 23:49:18 +02:00
Chris Price
76bfd9e72d Update Modulefile for 1.1.3 release
This updates our dependencies to the latest versions of inifile and
postgres.
2013-01-15 16:47:52 -08:00
Stephen
56ccf0ad17 refactor to use inifile add spec tests and fixture file 2012-09-06 15:56:26 +01:00