Commit graph

432 commits

Author SHA1 Message Date
Ashley Penney
68e0a6cc03 Merge pull request #323 from Element84/FixtureFix
Unable to run spec tests from behind firewall
2013-12-13 14:47:34 -08:00
Marc Huffnagle
f1bed14d9d Updated the URLs in the .fixtures.yml file to use https 2013-12-02 15:42:37 -05:00
Ashley Penney
8ed663fff5 Merge pull request #320 from apenney/fix-suid
(FM-486) Fix deprecated Puppet::Util::SUIDManager.run_and_capture
2013-11-25 15:02:28 -08:00
Ashley Penney
878bf49617 (FM-486) Fix deprecated Puppet::Util::SUIDManager.run_and_capture
Puppet::Util::SUIDManager.run_and_capture recently changed to
Execution.execute, switch before it blows up and stops working.
2013-11-22 14:45:37 -08:00
Ashley Penney
0796eb9fc6 Merge pull request #311 from kronn/patch-1
Remove deprecated and unused parameters to concat::fragment
2013-11-20 11:01:47 -08:00
Ashley Penney
68ac871e8b Merge pull request #309 from leehanel/master
add lc_* config entry settings
2013-11-20 08:57:02 -08:00
Ashley Penney
fdf5f04351 Merge pull request #313 from hubspotdevops/initdb_order
Exec['postgresql_initdb'] needs to be done after $datadir exists
2013-11-19 13:56:23 -08:00
Ken Barber
c114885a04 Merge pull request #310 from mcanevet/table_grant_fix
Fix table_grant_spec to show a bug
2013-11-15 08:40:16 -08:00
Mickaël Canévet
4cd64e80ac Add missing privileges 2013-11-15 15:20:15 +01:00
Ken Barber
7185addd90 Merge pull request #316 from mcanevet/template
Can pass template at database creation
2013-11-15 05:55:36 -08:00
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
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