Commit graph

138 commits

Author SHA1 Message Date
Martijn Storck
58f3f13762 Fix markdown error in README 2016-02-04 11:04:14 +01:00
jbondpdx
cd2a54855b FM-4657: postgresql edit pass 2016-01-29 13:49:00 -08:00
Jorie Tappa
5aac739f94 DOC-1496: README re-write. 2016-01-21 14:26:29 -06:00
Jesse Reynolds
a6872994a3 postgresql::server::db is a defined type not a class 2015-12-08 10:12:36 +11:00
David Schmitt
ade352be44 Merge pull request #701 from smortex/patch-1
Remove extra blanks and backslashes.
2015-10-09 10:37:24 +01:00
Stefan Warten
e8c661e207 Added parameter description in README, before-relation if restart_on_change is false, and unit tests for both conditions of the parameter 2015-10-07 16:24:41 +02:00
Romain Tartière
186cd2d1d7 Remove extra blanks and backslashes. 2015-10-07 10:36:32 +02:00
François Conil
c1f4530634 Fixes MODULES_2059 - adds extension argument
This adds the ability to define the extension name separately from the
"title" of the resource, which allows you to add the extension to more
than one database.

As per the original ticket, extensions in postgresql can be defined on
a per database basis. By using the same name for both the extension and
the instance of postgresql::server::extension, you're getting duplicates
errors if you try to assign an extension to more than one database
2015-09-09 14:26:41 +10:00
Tom Hey
6a29636155 (MODULES-661) Remote DB support
Adds connection-settings (for remote DB support) when creating DB resources.

Connection-settings allows a hash of options that can be used
when connecting the a remote DB (such as PGHOST, PGPORT, PGPASSWORD
PGSSLKEY) and a special option DBVERSION indicating the version
of the remote database.

Including
- Puppet updates
- Documentation updates
- RSpec unit test updates
- RSpec acceptance test updates
- Some test coverage for connection-settings
- Working acceptance test...
    Basic vagrant setup:
    * Two boxes, server and client
    * Runs puppet code to on server to setup a postgres server that allows all connections and md5 connections, creates db puppet to look at
    * Runs puppet code on client to make a server that a psql command can be run against puppet db on other server
    * Does some fancy stuff to get the fact of the IP from the first server to connect to
- Backwards compatible, with deprecation warnings around old parameters
2015-08-27 11:03:18 +01:00
David Schmitt
213bb754a0 Merge pull request #672 from GoozeyX/addproxyoption
Add proxy option for yum repositories
2015-08-12 17:25:25 +01:00
Alexander Brovman
1eb45d07f1 adding proxy option for yum repositories 2015-08-12 14:42:32 +02:00
Nick Walker
25c1bae73a Decouple pg_hba_rule from postgresql::server
This change allows the pg_hba_rule defined type to be used
even if you have not included postgresql::server.

By default it will continue with the same behavior as before,
however, you can now specify some extra parameters that were
previously coming directly from postgresql::server
2015-08-11 11:47:27 -07:00
Jamie Lennox
41cc12efe8 Update README.md 2015-07-03 15:55:15 +01:00
David Schmitt
d5efb1fea3 Merge pull request #665 from bmjen/squash-620
Support granting permission on sequences.
2015-07-02 19:18:48 +01:00
qha
c9ffadd31b Support granting permission on sequences.
add spec test for sequence grant and document postgresql::server::grant.
2015-07-02 10:33:15 -07:00
Morgan Haskel
540623144e Loosen the apt dependency
Once puppetlabs-apt 2.1.0 is released (2015-06-16) the postgresql module
will be compatible with apt 1.x (>= 1.8.0) and 2.x (>= 2.1.0). This will
*not* work with puppetlabs-apt 2.0.x.
2015-07-01 14:13:28 -07:00
deVIAntCode
f9c0d91680 Add classes to install PL/Python and the postgresql-docs
See the README for usage and provided parameters.
2015-05-29 10:00:01 +01:00
JT (Jonny)
8dbf982b62 Merge pull request #410 from ccin2p3/validate_cmd
Add param for specifying validate connection script in postgresql::client.
2015-03-31 16:55:05 +01:00
JT (Jonny)
40061ba1a4 Merge pull request #603 from dacrome/ticket/1761-provide_recovery_conf
(MODULES-1761) Provide defined resource for managing recovery.conf
2015-03-31 16:30:44 +01:00
David Crome
81b4778b93 (MODULES-1761) Provide defined resource for managing recovery.conf
Currently there is no resource to use for creating the recovery.conf

This resource can create a recovery.conf for replication with all
currently supported parameters
2015-03-30 10:27:55 +02:00
Hunter Haugen
7b711f4905 Update readme with types docs 2015-03-25 08:19:09 -07:00
Remi Ferrand
995e1983f2 Add param for specifying validate connection script.
* Add param `validcon_path` in `postgresql::client` (defaults to
previous hard coded value).
* Add tests for this new parameter.

All tests runs successfully on Scientific Linux 6.4

```
$ bundle exec rake spec SPEC_OPTS='--format documentation'
[...]

Finished in 2 minutes 10.5 seconds (files took 1.4 seconds to load)
201 examples, 0 failures
```
2015-03-20 12:18:12 +01:00
Colin Wood
83b4ac1661 Allow management of logdir and add logdir parameter 2015-03-12 10:40:46 -07:00
Colleen Murphy
317c146629 Merge pull request #573 from mhaskel/openbsd_support
Openbsd support
2015-03-06 14:39:56 -08:00
Morgan Haskel
1ca8ecda15 Merge pull request #561 from igalic/docs-current
doc links should point to /current/ rather than a specific version
2015-03-06 14:26:42 -08:00
Morgan Haskel
593e953bf7 Readme and test updates for service_reload parameter 2015-03-06 14:11:33 -08:00
Morgan Haskel
a3d79445b0 README had outdated upgrade info
Info was on upgrading from 2.x->3.0, but this is 4.x.
2015-03-06 13:51:28 -08:00
Igor Galić
f51bb46cea doc links should point to /current/ rather than a specific version 2015-02-06 13:34:47 +01:00
Colleen Murphy
d42b821969 Merge pull request #521 from raphink/dev/server_extension
Add postgresql::server::extension definition
2015-02-04 14:26:53 +01:00
juniorsysadmin
435d63297a (MODULES-1153) Add database comment parameter 2015-02-04 22:45:28 +11:00
Colleen Murphy
39f920657b Merge pull request #542 from dhoppe/patch-1
Update README.md
2015-02-04 11:52:09 +01:00
Patric Hafner
63fad69e05 change example of postgresql::server::role definition to version 3 2015-01-29 14:58:32 +01:00
Raphaël Pinson
807fefe5fa Add postgresql::server::extension definition 2014-12-08 16:27:33 +01:00
Dennis Hoppe
7144d09675 Update README.md
At least on Debian / Ubuntu and PostgreSQL 9.1, the values for encoding and locale should look like this example.
2014-12-06 16:26:51 +01:00
Colleen Murphy
6fd4f01d6d Merge pull request #541 from bemosior/master
Minor README internal resource linking fixes.
2014-12-05 10:01:14 -08:00
Benjamin Mosior
fbd244e7f0 Removed Disclaimer/License internal resource link.
The target no longer exists.
2014-12-05 12:15:45 -05:00
Benjamin Mosior
cf63e5306b Fixed broken internal resource links. 2014-12-05 12:15:12 -05:00
juniorsysadmin
789543fc45 Add service_manage parameter
Loosely addresses MODULES-1522
2014-12-05 10:10:17 +11:00
Travis Fields
9aebc4fbfe MODULES-1485 Reverted to default behavior for Debian systems as pg_config should not be overridden 2014-11-21 11:58:23 -05:00
Colleen Murphy
6ba3179916 Fix data directory handling
The change introduced in b781849882 added
a complex operation that was not handled correctly for all operating
systems. This fix includes the following corrections:

- Change the systemd config and reload systemd for datadir changes in
  RHEL 7, and move configuration for this into
  postgresql::server::config since it is managing both the PGDATA and
  PGPORT variables
- Make sure Debian systems stop the service before changing the datadir
- Recreate cert links after running initdb in Debian and early ubuntu
- Change the port in the port spec to avoid selinux issues
- Turn off selinux in pgdata spec to avoid selinux issues
- Correct syntax for describing presence of a directory in pgdata spec
- Move the pgdata spec to the end of the tests so that puppet doesn't
  have to manager purging and recreating the original datadir
- Update README to describe all caveats of using this parameter
2014-10-31 16:03:15 -07:00
Morgan Haskel
e3b6c5e79b Merge pull request #502 from aswen/typos
Fix some typo's in Readme and specfile.
2014-10-02 12:22:30 -05:00
Morgan Haskel
b9d0377029 Merge pull request #503 from petehayes/master
Fixed description for schema example
2014-10-02 12:21:49 -05:00
Hunter Haugen
eb96a85873 Merge pull request #506 from learningobjectsinc/doc-fix-login-default
$login parameter in server/role.pp defaults to true. doc says false.
2014-10-02 10:21:08 -07:00
Christian Kaenzig
677b3c4d94 Add some missing params documentation
Copy 'owner' from postgresql::server::database to
postgresql::server::db and adding 'template' to both
(based on the createdb man page).
2014-09-25 15:22:55 +02:00
tobyw4n
56db66b1fa $login parameter in server/role.pp defaults to true 2014-09-22 13:39:38 -07:00
Peter Hayes
029ec9fcf3 Fixed description for schema example
The schema example referenced isolated as the namevar but in the description it said that the schema jane would be created.  Fixed by updating description to say schema named isolated will be created.
2014-09-16 09:43:12 -04:00
Alexander Swen
1fa55ca823 Fix some typo's in Readme and specfile. 2014-09-12 15:03:39 +02:00
Ashley Penney
f38f75e018 Merge pull request #459 from holguinj/linkfix
doc: Fix anchor links in README TOC
2014-08-28 13:48:13 -04:00
Ashley Penney
0dc4729d55 Merge pull request #458 from stdietrich/pg_ident_doc_fix
Add correct documentation for pg_ident_rule type
2014-08-28 13:48:00 -04:00
Hunter Haugen
532047919a Remove firewall management
The firewall management really belongs outside of the module that
manages postgresql, like in a profile.
2014-08-21 11:12:23 -07:00