Commit graph

390 commits

Author SHA1 Message Date
Ken Barber
acabbbf530 Remove concat::setup for include
Since the class is now throwing an error when you use the class directly,
I'm just removing it.

We left this in from the last rewrite as someone reported an issue a long
time ago, but alas we have been unable to prove its a problem.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-24 00:33:45 +01:00
Ken Barber
5df36cf1f7 (GH-198) Fix race condition on postgresql startup
This patch is a fix for the race condition that keeps occuring during
postgresql setup. Its very rare on its own, but when you are using this
module in a CI environment it happens quite frequently.

Basically what happens is that sometimes the service will announce the
database has started, but really it is still working in the background.
Sometimes the unix socket may not be listening, and sometimes the
system is still loading and you get a weird client error.

The fix itself is a modification to postgresql::validate_db_connection
so that it is able to connect on the local unix socket, plus retry
until the database is available.

This new and improved validate_db_connection can then be put into the
build pipeline (in the service class in particular) to ensure the
database is started before continuing on with the remaining steps.

This in effect blocks the puppet module from continuing until the
postgresql database is fully started and able to receive connections
which is perfect.

Tests and documentation provided.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-24 00:33:45 +01:00
Ken Barber
173f59980a Merge pull request #291 from cdenneen/patch-2
Update server.pp
2013-10-23 16:30:00 -07:00
cdenneen
81dbea2ec5 fixed typo 2013-10-23 13:45:44 -04:00
cdenneen
ab5c177b76 Update server.pp
add require of install to reload class
2013-10-23 12:58:25 -04:00
Ken Barber
f021ef3cdb Merge pull request #286 from jalli/master
Add zero length string to join() function
2013-10-23 04:59:11 -07:00
Ashley Penney
712e5fc7f4 Merge pull request #284 from 3dna/conf_allows_dots
periods are valid in configuration variables also
2013-10-21 14:26:44 -07:00
Ashley Penney
922c29d3cd Merge pull request #275 from 3dna/feature/psql_search_path
add search_path attribute to postgresql_psql resource
2013-10-21 14:17:56 -07:00
Ashley Penney
767cb2ed4e Merge pull request #281 from jonoterc/master
enable setting the postgres user's password without resetting the password on every puppet run
2013-10-21 13:55:24 -07:00
Jarl Stefansson
017d134188 Add zero length string to join() function
The stdlib join() function takes an array and a string as parameters, it then joins all the elements of the array using the string as a separator.
On Centos 6.4 the join() function fails if given just an array but not a string.
2013-10-19 12:04:04 -04:00
Jeremy Kitchen
66ef240614 test and fix for dots breaking config keys 2013-10-18 23:02:11 +00:00
Jeremy Kitchen
9776602e49 periods are valid in configuration variables also
example:
http://www.postgresql.org/docs/9.2/static/auto-explain.html
2013-10-18 21:33:37 +00:00
jonoterc
a93fcf850c enabling defined postgres user password without resetting on every puppet run (based on https://github.com/puppetlabs/puppetlabs-postgresql/issues/92) 2013-10-17 17:57:33 -04:00
Hunter Haugen
f346201a54 Merge pull request #279 from apenney/300-release
Prepare 3.0.0 release.
2013-10-16 16:21:17 -07:00
Ashley Penney
4220c5c786 Prepare 3.0.0 release. 2013-10-16 19:17:32 -04:00
Ashley Penney
22ee0c6442 Merge pull request #278 from apenney/300-release
Prepare 3.0.0-rc3 release.
2013-10-16 08:49:41 -07:00
Ashley Penney
ece47797c8 Prepare 3.0.0-rc3 release. 2013-10-16 11:49:00 -04:00
Ashley Penney
42c1b77043 Merge pull request #261 from mcanevet/manage_pg_hba_conf
Add a parameter to (un)manage pg_hba.conf
2013-10-16 06:06:00 -07:00
Mickaël Canévet
6f614b0b37 Add a parameter to (un)manage pg_hba.conf 2013-10-16 14:58:08 +02:00
Jeremy Kitchen
38e82ede57 add search_path attribute to postgresql_psql resource
This allows you to set a schema search_path on postgresql_psql
resources, in case you have multiple schemas in your database and the
SQL you are trying to run requires a different path
2013-10-14 22:00:21 +00:00
Ashley Penney
3877a01224 Merge pull request #273 from ares/master
Expose owner in db definition
2013-10-14 09:10:51 -07:00
Marek Hulan
5f026f1322 Tests for owner param 2013-10-10 17:44:52 +02:00
Marek Hulan
b784676c2e Expose owner in db definition 2013-10-10 17:34:26 +02:00
Ashley Penney
acc5ed72c1 Merge pull request #272 from apenney/200-rc2-release
Prepare 3.0.0-rc2 release.
2013-10-09 12:54:46 -07:00
Ashley Penney
4a6c45a9ba Prepare 3.0.0-rc2 release. 2013-10-09 09:28:06 -07:00
Ashley Penney
f28c355b26 Merge pull request #267 from neilnorthrop/master
fixed the rspec test to include 'sha1' in
2013-10-09 09:05:16 -07:00
Ashley Penney
bf03e21b7a Merge pull request #268 from duritong/master
Fix documentation about username/password for the postgresql_hash functi...
2013-10-09 09:01:01 -07:00
Ashley Penney
d925bd9951 Merge pull request #269 from apenney/metadata
FM-103: Add metadata.json to all modules.
2013-10-07 13:09:02 -07:00
Ashley Penney
f784f46c2e FM-103: Add metadata.json to all modules. 2013-10-07 13:12:01 -07:00
duritong
194bdf019c Fix documentation about username/password for the postgresql_hash function
This is messed up in different ways and this commit brings it in align with what the function actually does.
2013-10-07 18:39:30 +02:00
Neil Northrop
f9e6046132 fixed the rspec test to include 'sha1' in 2013-10-04 15:14:10 -07:00
Hunter Haugen
8160fa77fc Merge pull request #262 from bcomnes/amazon
Special case for $datadir on Amazon
2013-10-02 15:49:27 -07:00
Bret Comnes
2718f14017 Special case for $datadir on Amazon
Closes #252
2013-10-02 12:48:44 -07:00
Ashley Penney
fc48c19894 Merge pull request #259 from apenney/300-release
Prepare 3.0.0 release.
2013-10-02 06:47:10 -07:00
Ashley Penney
ea9db68ca9 Prepare 3.0.0 release. 2013-10-01 13:21:59 -04:00
Ashley Penney
66037e8264 Merge pull request #258 from apenney/license
Fix license file.
2013-09-30 10:18:08 -07:00
Ashley Penney
e4ce57be6e Fix license file. 2013-09-30 13:17:37 -04:00
Ken Barber
77dd7915f4 Merge pull request #255 from mnencia/patch-6
Support apt.postgresql.org version specific packages.
2013-09-29 13:06:50 -07:00
Marco Nenciarini
0cb71c7c5f Support apt.postgresql.org version specific packages.
This change will allow to test beta and release candidate version of
postgres from apt.postgresql.org.

For stable version this change will make available the libpq package
for that specific version (that will not hurts).
2013-09-25 18:01:07 +02:00
Ashley Penney
6ac2e25821 Merge pull request #249 from aboe76/master
Added Archlinux Support
2013-09-23 16:22:59 -07:00
Ashley Penney
5ac999b72c Merge pull request #251 from kamilszymanski/authentication_method_validation
Validate authentication method against server version
2013-09-23 12:19:28 -07:00
Niels Abspoel
1e3bcb73bb Added Archlinux Support 2013-09-23 20:08:17 +02:00
Ken Barber
96d7a16e04 Merge pull request #250 from kamilszymanski/linting
lint fixes
2013-09-23 06:12:49 -07:00
Kamil Szymanski
71e0236659 Validate authentication method against server version 2013-09-22 22:35:18 +02:00
Kamil Szymanski
480fc64f6b lint fixes 2013-09-21 19:45:35 +02:00
Ashley Penney
1a53de99d5 Merge pull request #248 from gjngeldenhuis/spelling
Fixing small typos
2013-09-20 10:14:14 -07:00
Ashley Penney
cada1d7f1c Merge pull request #245 from kbarber/pgsql-major-rewrite-with-features
Pgsql major rewrite with features
2013-09-20 09:54:24 -07:00
Gerrard Geldenhuis
ce93e93534 Fixing small typos 2013-09-20 17:41:53 +01:00
Ken Barber
891b1d71a2 Rename contrib to server::contrib
Signed-off-by: Ken Barber <ken@bob.sh>
2013-09-20 14:35:24 +01:00
Ken Barber
56c10986a8 Ensure we use port 5432 for postgresql
Signed-off-by: Ken Barber <ken@bob.sh>
2013-09-20 01:17:43 +01:00