Commit graph

473 commits

Author SHA1 Message Date
Mickaël Canévet
1ce75d5bc8 Fix granting all privileges on a table 2013-11-14 18:17:23 +01:00
Mickaël Canévet
f0924df7c8 Can pass template at database creation 2013-11-14 18:01:30 +01:00
Tom McLaughlin
bac4b87a8d Prevent float of defined resource. 2013-11-13 15:30:58 -05:00
Tom McLaughlin
05eaaa1670 Should have had cofee before doing this commit... 2013-11-13 10:17:25 -05:00
Tom McLaughlin
99a1e03154 Exec['postgresql_initdb'] needs to be done after $datadir exists 2013-11-13 08:59:39 -05:00
Matthias Viehweger
673838c3d8 Remove deprecated and unused parameters to concat::fragment
The warnings are as follows:

Warning: Scope(Concat::Fragment[pg_hba_rule_deny access to postgresql user]): The $mode parameter to concat::fragment is deprecated and has no effect
Warning: Scope(Concat::Fragment[pg_hba_rule_deny access to postgresql user]): The $owner parameter to concat::fragment is deprecated and has no effect
2013-11-12 16:36:53 +01:00
Mickaël Canévet
d433b283df Fix table_grant_spec to show a bug 2013-11-12 14:23:05 +01:00
leehanel
b706edff9b add lc_* config entry settings 2013-11-08 09:09:03 -06:00
Ashley Penney
73aac35140 Merge pull request #306 from apenney/320-release
Prepare a 3.2.0 release.
2013-11-05 13:20:07 -08:00
Ashley Penney
6d905d4ea2 Prepare a 3.2.0 release. 2013-11-05 13:40:51 -05:00
Ken Barber
e45d909313 Merge pull request #301 from dawik/master
Spelling and redundancy fix in README
2013-10-31 05:45:49 -07:00
Ken Barber
2819ce7be8 Merge pull request #302 from n1tr0g/master
Missing depedenncy '->' and class misspelled (missing ending s)
2013-10-31 05:45:25 -07:00
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
David Wikmans
57f3f09a1d Spelling and redundancy fix in README 2013-10-30 20:27:12 +01: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