Ashley Penney
5d4ecb1b04
Merge pull request #413 from rdark/support/jdbc_repo_dependency
...
tag postgresql-jdbc package to fix package repo dependency
2014-06-05 13:37:03 -04:00
Ashley Penney
e29f5ef8d8
Merge pull request #422 from dvorak/create_user_role_before_validate
...
Ensure db user exists before validating db connection
2014-06-05 13:36:24 -04:00
Ashley Penney
53ce9110d7
Merge pull request #414 from lucas42/patch-1
...
Support Debian Jessie
2014-06-05 13:35:31 -04:00
Ashley Penney
e137cd2d40
Merge pull request #419 from mcanevet/fix/unknown_postgis_version
...
Set fallback postgis_version to undef so that catalog still compiles if d...
2014-06-05 13:33:56 -04:00
Ashley Penney
8db4a0cf67
Fix Ubuntu 14.04 tests for now.
...
This doesn't fix the root cause of the issue, such as the fact that
dpkg can't do wildcard removals, and the uninstall fails when you're
passing in a version number like this, but THIS test doesn't care, it
just wants to make sure the deprecation warning appears in the first
place.
This does however make the tests pass on 14.04.
2014-06-03 13:21:45 -04:00
Clayton O'Neill
6e55b9bbb3
Ensure db user exists before validating db connection
...
The validate_db_connection class takes a user to connect as, but if we're
using the progresql::server::db defined type then the user might not be
created yet, and might not have any permissions granted yet. This patch
users a collector to ensure that the that the user and grants are active
before validating.
2014-05-23 17:05:17 -04:00
William Van Hevelingen
fee21d858d
Change selector statements to have default listed last
...
As per the official docs "the default case must be at the end of the list."
http://docs.puppetlabs.com/puppet/latest/reference/lang_conditional.html#selectors
This commit fixes breakage in Puppet 3.6.0 where it enforces the behavior
described above when Future parser is enabled.
See https://tickets.puppetlabs.com/browse/PUP-2642
2014-05-22 15:30:55 -07:00
Mickaël Canévet
3545865302
Set falback postgis_version to undef so that catalog still compiles if default postgresql version is unknown
2014-05-20 11:32:18 +02:00
Ashley Penney
d8fec75635
Merge pull request #409 from mnencia/patch-1
...
Update apt.postgresql.org key url
2014-05-18 08:02:52 -07:00
Ashley Penney
246725cfb9
Fix postgis so it installs the approprate RHEL5 package.
...
In RHEL5 the package was just named 'postgis' in the external repos,
rather than postgis$package_version.
2014-05-13 20:24:28 +02:00
Morgan Haskel
906794d3ce
'!' binds before 'and'.
...
This caused the repo not to be included on RHEL5 and added extra failures.
2014-05-13 10:54:09 -04:00
Ashley Penney
ff59d421f9
See if this fixes puppet 2.7.
2014-05-13 00:52:29 +02:00
Ashley Penney
192ea5e3f3
Fix service_ensure.
...
We now test if service_ensure is 'running' or 'stopped' but it was
actually picking up the default value of ensure in params.pp which
was true, not present.
Fix this and thereby fix the failing test.
2014-05-12 23:34:25 +02:00
Ashley Penney
c00b47f220
Restructure the tests here to be cleaner.
2014-05-12 23:28:18 +02:00
Luke Blaney
375308a12d
Support Debian Jessie
2014-05-11 23:24:36 +01:00
Ashley Penney
a8705e2cb2
Fix RHEL5 service stopping.
...
On RHEL5 a service stop returns a 1 instead of 0 if the thing is already
stopped, so we now check the status first before attempting to stop.
2014-05-10 16:57:29 +02:00
Ashley Penney
74039db1a1
Add an entry for RHEL5.
2014-05-10 02:14:27 +02:00
Ashley Penney
4334dc7bd9
Stop postgresql before changing port.
2014-05-09 15:28:00 -04:00
Richard Clark
25b11a2e6b
tag postgresql-jdbc package to fix package repo dependency
2014-05-09 14:01:15 +01:00
Ashley Penney
6bf896fa34
Switch to 'running'/'stopped' to match the test below.
2014-05-08 19:50:11 -04:00
Ashley Penney
4e002d7fd9
Make sure we continue working post 7.0.
2014-05-08 16:52:04 -04:00
Ashley Penney
5488821ce6
Ensure we've always started postgresql at least once before a reload.
2014-05-08 16:47:37 -04:00
Ashley Penney
a575884908
Ensure repo is in place before postgis installation.
...
We need to make sure we've actually setup the repo before installing
postgis.
2014-05-08 16:47:10 -04:00
Ashley Penney
3e3fa8cab1
Handle ports for systemd.
...
This is a terrible hack currently but it appropriately handles systemd.
2014-05-08 16:46:39 -04:00
Ashley Penney
d010bc8c7f
This doesn't exist on RHEL7.
2014-05-08 16:46:09 -04:00
Ashley Penney
5323054ddc
Update for RHEL7.
...
Block RHEL7 from pulling in the PostgreSQL repos from upstream as they
don't exist yet.
2014-05-08 16:44:53 -04:00
Ashley Penney
5e33409342
Add service_ensure
.
...
This allows you to control the status of the Postgresql service directly
from postgresql::server.
2014-05-08 16:43:22 -04:00
Hunter Haugen
21001d5b0c
(MODULES-630) Deprecate postgresql::server::version
...
Adjusting the version is explicitly done though the postgresql::globals
class, as this affects many parts of the module. This parameter did not
function correctly on systems that did not have a default, as described
in the ticket.
2014-05-07 15:25:18 -07:00
Marco Nenciarini
192c8073ff
Update apt.postgresql.org key url
...
Accordingly to http://wiki.postgresql.org/wiki/Apt the correc key_source url is https://www.postgresql.org/media/keys/ACCC4CF8.asc
Today the old file was removed, so it's urgent to update this file and made a new release
2014-04-30 12:42:46 +02:00
Brian Almeida
86f2950248
Add support for port parameter to postgresql::server, fix underlying assumptions that port=5432
2014-04-17 15:09:07 -04:00
Ashley Penney
3d73e7fe7f
Merge pull request #372 from jhoblitt/feature/pg_hba.conf-ownership
...
change pg_hba.conf to be owned by postgres user account
2014-04-17 13:31:04 -04:00
Ashley Penney
a29d038287
Merge pull request #401 from cfeskens/add-perl-support
...
Add class postgresql::lib::perl for perl support
2014-04-17 13:27:00 -04:00
Mickaël Canévet
0b7bb333d8
Fix strict_variables issues
2014-04-08 17:37:29 +02:00
Casey Feskens
9e60640bd9
Add class postgresql::lib::perl for perl support
2014-04-04 06:13:30 -07:00
Ashley Penney
0adbcfb64f
Merge pull request #280 from 3dna/feature/postgis
...
postgis support
2014-04-02 09:31:03 -04:00
Ashley Penney
d8875983c9
Merge pull request #395 from thunderkeys/postgresql-server-role-inherit-support
...
Postgresql server role inherit support
2014-04-02 07:30:20 -04:00
Jeremy Kitchen
c4bca511e9
add support for postgis
...
rhel support added by @mcanevet, but the branch has been squashed.
thanks!
2014-03-31 21:40:01 +00:00
Pieter Lexis
dcdc7c8f5a
Allow the ex- and import of postgresql::server::db
2014-03-27 16:49:48 +01:00
Brian Almeida
ad083d0e4d
Add support to postgresql::server::role for INHERIT/NOINHERIT
2014-03-24 11:19:12 -04:00
Geoff Garside
688b0aa3fc
Replace psql_db => $user with $default_database.
...
On FreeBSD systems the $user variable is not 'postgres' so does not
match the default database correctly. These changes use the existing
default_database parameter to replace instances where $user is passed as
the database to be connected to.
These changes are in server::database, server::role and
server::grant.
2014-03-10 09:26:28 +00:00
Geoff Garside
3896baeabb
Change validate_postgresql_connection.sh exec PATH
...
FreeBSD needs /usr/local/bin in PATH in order to find bash. This does
require that the node has the bash port installed. It might be desired
that a separate script was provided for FreeBSD which used its /bin/sh,
this could be done by changing the for loop in the script to use
for c in $(jot $TRIES)
in place of
for (( c=1; c<=$TRIES; c++ ))
2014-03-10 09:20:36 +00:00
Geoff Garside
8f89ffaf06
Update FreeBSD $confdir to defer to $datadir
...
This matches the behaviour of most of the other operating systems
configurations.
2014-03-10 09:19:52 +00:00
Geoff Garside
3225a889e6
Move params::{user,group} to be set under osfamily
...
Allows for OS specific $user and $group value specification. For most of
the target operating systems these will both be 'postgres'. For FreeBSD
however these values are 'pgsql'.
2014-03-10 09:17:10 +00:00
Joshua Hoblitt
d49939014c
change pg_hba.conf to be owned by postgres user account
...
At present, the ownership of pg_hba.conf is hardwired to be uid 0. It should have the same ownership as all of the other postgressql configuration files in the same cluster so that they can be managed/edited by the postgres role user (system) account.
2014-02-27 11:38:20 -07:00
Hunter Haugen
f82cc79b86
Merge branch 'master' into 3.3.x
2014-02-24 16:12:39 -08:00
Justin Stoller
c246bbbc8d
remove trailing whitespace
2014-02-14 12:32:57 -08:00
Igor Galić
828c3b99d2
use fully-qualified path to psql to set password
...
When setting the a user's password, use the fully qualified path to the
psql binary. This should fix #359
2014-02-13 11:53:41 +01:00
Ashley Penney
139ca0a542
Merge pull request #327 from xaque208/freebsdsupport
...
(feat) Add FreeBSD Support
2014-01-21 15:03:05 -08:00
Ashley Penney
8d7bf05796
Merge pull request #325 from aadamovich/patch-2
...
$postgresql::server::client_package_name is referred from install.pp, bu...
2014-01-21 14:36:11 -08:00
Ashley Penney
4409dbc4b2
Merge pull request #324 from aadamovich/patch-1
...
Wrong parameter name: manage_pg_conf -> manage_pg_hba_conf
2014-01-21 14:35:35 -08:00