salsa: more mail setup
[mirror/dsa-puppet.git] / 3rdparty / modules / postgresql / Changelog
1 2013-07-19 Release 2.4.0
2 ========================
3
4 Summary
5 -------
6 This updates adds the ability to change permissions on tables, create template
7 databases from normal databases, manage PL-Perl's postgres package, and
8 disable the management of `pg_hba.conf`.
9
10 Features
11 --------
12 - Add `postgresql::table_grant` defined resource
13 - Add `postgresql::plperl` class
14 - Add `manage_pg_hba_conf` parameter to the `postgresql::config` class
15 - Add `istemplate` parameter to the `postgresql::database` define
16
17 Bugfixes
18 --------
19 - Update `postgresql::role` class to be able to update roles when modified
20 instead of only on creation.
21 - Update tests
22 - Fix documentation of `postgresql::database_grant`
23
24 2.3.0
25 =====
26
27 This feature release includes the following changes:
28
29 * Add a new parameter `owner` to the `database` type.  This can be used to
30   grant ownership of a new database to a specific user.  (Bruno Harbulot)
31 * Add support for operating systems other than Debian/RedHat, as long as the
32   user supplies custom values for all of the required paths, package names, etc.
33   (Chris Price)
34 * Improved integration testing (Ken Barber)
35
36 2.2.1
37 =====
38
39 This release fixes a bug whereby one of our shell commands (psql) were not ran from a globally accessible directory. This was causing permission denied errors when the command attempted to change user without changing directory.
40
41 Users of previous versions might have seen this error:
42
43     Error: Error executing SQL; psql returned 256: 'could not change directory to "/root"
44
45 This patch should correct that.
46
47 #### Detail Changes
48
49 * Set /tmp as default CWD for postgresql_psql
50
51 2.2.0
52 =====
53
54 This feature release introduces a number of new features and bug fixes.
55
56 First of all it includes a new class named `postgresql::python` which provides you with a convenient way of install the python Postgresql client libraries.
57
58     class { 'postgresql::python':
59     }
60
61 You are now able to use `postgresql::database_user` without having to specify a password_hash, useful for different authentication mechanisms that do not need passwords (ie. cert, local etc.).
62
63 We've also provided a lot more advanced custom parameters now for greater control of your Postgresql installation. Consult the class documentation for PuppetDB in the README.
64
65 This release in particular has largely been contributed by the community members below, a big thanks to one and all.
66
67 #### Detailed Changes
68
69 * Add support for psycopg installation (Flaper Fesp and Dan Prince)
70 * Added default PostgreSQL version for Ubuntu 13.04 (Kamil Szymanski)
71 * Add ability to create users without a password (Bruno Harbulot)
72 * Three Puppet 2.6 fixes (Dominic Cleal)
73 * Add explicit call to concat::setup when creating concat file (Dominic Cleal)
74 * Fix readme typo (Jordi Boggiano)
75 * Update postgres_default_version for Ubuntu (Kamil Szymanski)
76 * Allow to set connection for noew role (Kamil Szymanski)
77 * Fix pg_hba_rule for postgres local access (Kamil Szymanski)
78 * Fix versions for travis-ci (Ken Barber)
79 * Add replication support (Jordi Boggiano)
80 * Cleaned up and added unit tests (Ken Barber)
81 * Generalization to provide more flexability in postgresql configuration (Karel Brezina)
82 * Create dependent directory for sudoers so tests work on Centos 5 (Ken Barber)
83 * Allow SQL commands to be run against a specific DB (Carlos Villela)
84 * Drop trailing comma to support Puppet 2.6 (Michael Arnold)
85
86 2.1.1
87 =====
88
89 This release provides a bug fix for RHEL 5 and Centos 5 systems, or specifically systems using PostgreSQL 8.1 or older. On those systems one would have received the error:
90
91     Error: Could not start Service[postgresqld]: Execution of ‘/sbin/service postgresql start’ returned 1:
92
93 And the postgresql log entry:
94
95     FATAL: unrecognized configuration parameter "include"
96
97 This bug is due to a new feature we had added in 2.1.0, whereby the `include` directive in `postgresql.conf` was not compatible. As a work-around we have added checks in our code to make sure systems running PostgreSQL 8.1 or older do not have this directive added.
98
99 #### Detailed Changes
100
101 2013-01-21 - Ken Barber <ken@bob.sh>
102 * Only install `include` directive and included file on PostgreSQL >= 8.2
103 * Add system tests for Centos 5
104
105 2.1.0
106 =====
107
108 This release is primarily a feature release, introducing some new helpful constructs to the module.
109
110 For starters, we've added the line `include 'postgresql_conf_extras.conf'` by default so extra parameters not managed by the module can be added by other tooling or by Puppet itself. This provides a useful escape-hatch for managing settings that are not currently managed by the module today.
111
112 We've added a new defined resource for managing your tablespace, so you can now create new tablespaces using the syntax:
113
114     postgresql::tablespace { 'dbspace':
115       location => '/srv/dbspace',
116     }
117
118 We've added a locale parameter to the `postgresql` class, to provide a default. Also the parameter has been added to the `postgresql::database` and `postgresql::db` defined resources for changing the locale per database:
119
120     postgresql::db { 'mydatabase':
121       user     => 'myuser',
122       password => 'mypassword',
123       encoding => 'UTF8',
124       locale   => 'en_NG',
125     }
126
127 There is a new class for installing the necessary packages to provide the PostgreSQL JDBC client jars:
128
129     class { 'postgresql::java': }
130
131 And we have a brand new defined resource for managing fine-grained rule sets within your pg_hba.conf access lists:
132
133     postgresql::pg_hba { 'Open up postgresql for access from 200.1.2.0/24':
134       type => 'host',
135       database => 'app',
136       user => 'app',
137       address => '200.1.2.0/24',
138       auth_method => 'md5',
139     }
140
141 Finally, we've also added Travis-CI support and unit tests to help us iterate faster with tests to reduce regression. The current URL for these tests is here: https://travis-ci.org/puppetlabs/puppet-postgresql. Instructions on how to run the unit tests available are provided in the README for the module.
142
143 A big thanks to all those listed below who made this feature release possible :-).
144
145 #### Detailed Changes
146
147 2013-01-18 - Simão Fontes <simaofontes@gmail.com> & Flaper Fesp <flaper87@gmail.com>
148 * Remove trailing commas from params.pp property definition for Puppet 2.6.0 compatibility
149
150 2013-01-18 - Lauren Rother <lauren.rother@puppetlabs.com>
151 * Updated README.md to conform with best practices template
152
153 2013-01-09 - Adrien Thebo <git@somethingsinistral.net>
154 * Update postgresql_default_version to 9.1 for Debian 7.0
155
156 2013-01-28 - Karel Brezina <karel.brezina@gmail.com>
157 * Add support for tablespaces
158
159 2013-01-16 - Chris Price <chris@puppetlabs.com> & Karel Brezina <karel.brezina@gmail.com>
160 * Provide support for an 'include' config file 'postgresql_conf_extras.conf' that users can modify manually or outside of the module.
161
162 2013-01-31 - jv <jeff@jeffvier.com>
163 * Fix typo in README.pp for postgresql::db example
164
165 2013-02-03 - Ken Barber <ken@bob.sh>
166 * Add unit tests and travis-ci support
167
168 2013-02-02 - Ken Barber <ken@bob.sh>
169 * Add locale parameter support to the 'postgresql' class
170
171 2013-01-21 - Michael Arnold <github@razorsedge.org>
172 * Add a class for install the packages containing the PostgreSQL JDBC jar
173
174 2013-02-06 - fhrbek <filip.hbrek@gmail.com>
175 * Coding style fixes to reduce warnings in puppet-lint and Geppetto
176
177 2013-02-10 - Ken Barber <ken@bob.sh>
178 * Provide new defined resource for managing pg_hba.conf
179
180 2013-02-11 - Ken Barber <ken@bob.sh>
181 * Fix bug with reload of Postgresql on Redhat/Centos
182
183 2013-02-15 - Erik Dalén <dalen@spotify.com>
184 * Fix more style issues to reduce warnings in puppet-lint and Geppetto
185
186 2013-02-15 - Erik Dalén <dalen@spotify.com>
187 * Fix case whereby we were modifying a hash after creation
188
189 2.0.1
190 =====
191
192 Minor bugfix release.
193
194 2013-01-16 - Chris Price <chris@puppetlabs.com>
195  * Fix revoke command in database.pp to support postgres 8.1 (43ded42)
196
197 2013-01-15 - Jordi Boggiano <j.boggiano@seld.be>
198  * Add support for ubuntu 12.10 status (3504405)
199
200 2.0.0
201 =====
202
203 Many thanks to the following people who contributed patches to this
204 release:
205
206 * Adrien Thebo
207 * Albert Koch
208 * Andreas Ntaflos
209 * Brett Porter
210 * Chris Price
211 * dharwood
212 * Etienne Pelletier
213 * Florin Broasca
214 * Henrik
215 * Hunter Haugen
216 * Jari Bakken
217 * Jordi Boggiano
218 * Ken Barber
219 * nzakaria
220 * Richard Arends
221 * Spenser Gilliland
222 * stormcrow
223 * William Van Hevelingen
224
225 Notable features:
226
227    * Add support for versions of postgres other than the system default version
228      (which varies depending on OS distro).  This includes optional support for
229      automatically managing the package repo for the "official" postgres yum/apt
230      repos.  (Major thanks to Etienne Pelletier <epelletier@maestrodev.com> and
231      Ken Barber <ken@bob.sh> for their tireless efforts and patience on this
232      feature set!)  For example usage see `tests/official-postgresql-repos.pp`.
233
234    * Add some support for Debian Wheezy and Ubuntu Quantal
235
236    * Add new `postgres_psql` type with a Ruby provider, to replace the old
237      exec-based `psql` type.  This gives us much more flexibility around
238      executing SQL statements and controlling their logging / reports output.
239
240    * Major refactor of the "spec" tests--which are actually more like
241      acceptance tests.  We now support testing against multiple OS distros
242      via vagrant, and the framework is in place to allow us to very easily add
243      more distros.  Currently testing against Cent6 and Ubuntu 10.04.
244
245    * Fixed a bug that was preventing multiple databases from being owned by the
246      same user
247      (9adcd182f820101f5e4891b9f2ff6278dfad495c - Etienne Pelletier <epelletier@maestrodev.com>)
248
249    * Add support for ACLs for finer-grained control of user/interface access
250      (b8389d19ad78b4fb66024897097b4ed7db241930 - dharwood <harwoodd@cat.pdx.edu>)
251
252    * Many other bug fixes and improvements!
253
254
255 1.0.0
256 =====
257 2012-09-17 - Version 0.3.0 released
258
259 2012-09-14 - Chris Price <chris@puppetlabs.com>
260  * Add a type for validating a postgres connection (ce4a049)
261
262 2012-08-25 - Jari Bakken <jari.bakken@gmail.com>
263  * Remove trailing commas. (e6af5e5)
264
265 2012-08-16 - Version 0.2.0 released