Commit graph

410 commits

Author SHA1 Message Date
Dejan Golja
286762e98c Misspelled class postgresql::globals (missing ending 's' in some cases) 2013-10-31 13:51:16 +11:00
Dejan Golja
2b6cc9a558 Added missing depedenncy '->' in the Class: postgresql::globals usage example 2013-10-31 13:41:08 +11:00
Ken Barber
3476828518 Merge pull request #298 from reidmv/allow_specification_of_default_db_name
Allow specification of default database name
2013-10-27 17:30:41 -07:00
Ken Barber
1c4964b7cf Merge branch 'ubuntu_trusty_support'
* ubuntu_trusty_support:
  Add default PostgreSQL version for Ubuntu 14.04
2013-10-27 19:17:40 +00:00
Kamil Szymanski
c1b67d3c0f Add default PostgreSQL version for Ubuntu 14.04 2013-10-27 19:17:22 +00:00
Ken Barber
e2e4325ad9 Merge pull request #296 from kamilszymanski/ubuntu_saucy_support
Add default PostgreSQL version for Ubuntu 13.10
2013-10-27 12:14:03 -07:00
Reid Vandewiele
b4a855c331 Use default_database in validate_db_connection
This commit modifies postgresql::validate_db_connection to use the
default_database parameter from postgresql::params rather than
hard-coding a local default value of "postgres".
2013-10-26 17:56:53 -07:00
Reid Vandewiele
cdf5b077fe Add globals/params layering for default_database
This makes the variable consistent with the manner in which most/all of
the rest of the postgresql module currently works.

Commit also adds the new param to the README file.
2013-10-26 17:56:48 -07:00
Reid Vandewiele
6afb4a0367 Allow specification of default database name
E.g. pe-postgresql does NOT use postgres as the default database name.
It uses pe-postgres. So if there is no way to specify a default database
name, the postgesql::validate_db_connection resource in
postgresql::server::service will ALWAYS fail. This commit exposes the
parameter in order to avoid that situation.
2013-10-26 16:33:36 -07:00
Kamil Szymanski
9d1543bd44 Add default PostgreSQL version for Ubuntu 13.10 2013-10-26 11:25:33 +02:00
Ashley Penney
43174fb5bd Merge pull request #294 from kbarber/maint/master/release_310
Release 3.1.0
2013-10-25 09:31:43 -07:00
Ken Barber
409334d318 Merge pull request #295 from apenney/autopublish
Add autopublishing.
2013-10-25 09:25:18 -07:00
Ashley Penney
3bc0ac2e27 Add autopublishing. 2013-10-25 11:56:31 -04:00
Ken Barber
93228ec342 Release 3.1.0
Release notes, and Modulefile/metadata.json updates.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-25 16:45:25 +01:00
Ashley Penney
74ff9572d2 Merge pull request #292 from kbarber/ticket/master/GH-198-race_condition_on_startup
(GH-198) Fix race condition on startup
2013-10-24 20:34:52 -07:00
Ken Barber
2b697c10f9 Use main psql path and cleanup old packages properly
Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-25 03:01:02 +02:00
Ashley Penney
ff35c0e115 Merge pull request #264 from bcomnes/fed17fix
Defined $default_version for Fedora 17
2013-10-23 16:40:08 -07:00
Ken Barber
ef45251a31 Provide a greater timeout for slower systems
Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-24 00:33:46 +01:00
Ken Barber
285a3ec7fc postgresql not puppetdb
Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-24 00:33:45 +01:00
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