newer pg module
[mirror/dsa-puppet.git] / 3rdparty / modules / postgresql / CHANGELOG.md
1 ## Supported Release 5.1.0
2 ### Summary
3 This release includes Japanese translations for internationalization, Puppet 5 support, implementation of defined type postgresql::server::reassign_owned_by.
4
5 #### Features
6 - Updating translations for readmes/README_ja_JP.md
7 - add defined type postgresql::server::reassign_owned_by
8 - Allow order parameter to be string value
9 - prep for puppet 5 ([MODULES-5144](https://tickets.puppetlabs.com/browse/MODULES-5144))
10 - add data_checksums option to initdb
11 - parameter ensure of custom resource postgresql_replication_slot is not documented ([MODULES-2989](https://tickets.puppetlabs.com/browse/MODULES-2989))
12
13 #### Bug Fixes
14 - Adding a space for header formatting
15 - use https for apt.postgresql.org repo
16 - msync puppet 5 and ruby 2.4 ([MODULES-5197](https://tickets.puppetlabs.com/browse/MODULES-5187))
17 - Only run test on postgresql >= 9.0 ([FM-6240](https://tickets.puppetlabs.com/browse/FM-6240))
18 - Fix Ruby 2.4 deprecation in postgresql_acls_to_resources_hash
19
20 ## Supported Release 5.0.0
21 ### Summary
22 This **major** release dropped support for Puppet 3 and PostgreSQL 8.x, added Puppet 4 data types, and deprecated the validate_db_connection type.
23
24 #### Added
25 - `locales/` directory, .pot file, and i18n `config.yaml`. ([FM-6116](https://tickets.puppet.com/browse/FM-6116))
26 - `update_password` parameter to toggle password management per role.
27 - **Puppet 4** type validation.
28 - new `postgresql_conn_validator` custom type and deprecated `validate_db_connection`. ([MODULES-1394](https://tickets.puppet.com/browse/MODULES-1394))
29
30 #### Changed
31 - default postgis versions in postgresql::globals to use newer versions.
32 - puppetlabs-concat and puppetlabs-apt dependencies to use latest versions. ([MODULES-4906](https://tickets.puppet.com/browse/MODULES-4906), [MODULES-4947](https://tickets.puppet.com/browse/MODULES-4947))
33 - default value for `log_line_prefix` to `undef`.
34 - `listen_addresses` default value to 'localhost'. Allows for it to be set independently of a class declaration.
35 - use of stdlib validate_* functions. They have been removed in favor of Puppet 4 type validation.
36 - lower Puppet dependency in metadata to 4.7.0. ([MODULES-4826](https://tickets.puppet.com/browse/MODULES-4826))
37
38 #### Fixed
39 - deprecated apt::source parameters(`key`,`key_source`, & `include_src`).
40 - default SUSE parameters. ([MODULES-4598](https://tickets.puppet.com/browse/MODULES-4598))
41 - use of force parameter on concat resources.
42
43 ## Supported Release 4.9.0
44 ### Summary
45 This release adds several types and, among other bugs, fixes an issue with the yum URL.
46
47 #### Features
48 - Modifying ownership of databases and schemas now available (MODULES-3247)
49 - Use `module_workdir` to specify a custom directory in which to execute psql commands
50 - `grant_role` and `grant` types added!
51 - Support for parallel unit testing (parallel_tests)
52 - Override download/installation repo URL with `repo_baseurl`
53 - Set your timezone with `timezone`
54 - Grant privileges on LANGUAGEs
55 - Added support for Debian Stretch and Ubuntu Yakkety Yak
56
57 #### Bugfixes
58 - Usernames and passwords are now converted to strings before password hash is created
59 - Specify default database name if it is not the username
60 - Update to yum repo
61 - Schema name conflicts fix
62
63 ## Supported Release 4.8.0
64 ### Summary
65 This release primarily fixes an issue with `postgresql_conf` values of ipaddresses being considered floats and not getting quoted.
66
67 #### Features
68 - Add `default_connect_settings` parameter to `postgresql::server`
69 - Running under strict variables is now supported
70 - Add timestamps into logs by default
71
72 #### Bugfixes
73 - Obscure password in postgresql\_psql type
74 - Fix ip address quoting in postgresql\_conf type
75 - Fix handling of systemd service on Ubuntu
76 - Mark log_min_duration_statement setting as requiring a service restart
77 - Add fixes for Fedora 23, Fedora 24, FreeBSD, OpenBSD
78 - Fix environment handling to avoid "Overriding environment setting" message
79 - Work around PUP-6385, using empty arrays instead of undef when specifying resource relationships
80 - README editorial pass
81 - Reduce whitespace in templates
82 - Update build/test infrastructure
83
84 ## Supported Release 4.7.1
85 ### Summary
86 This release contains some bugfixes and documentation updates.
87
88 #### Bugfixes
89 - (MODULES-3024) Quote database objects when creating databases.
90 - Properly escape case where password ends with '$'.
91 - Fixes password change when postgres is configure to non-standard port.
92 - Unpins concat dependency to be able to use concat 2.x.
93 - Workaround to fix installing on Amazon Linux.
94 - Fixes proper defaulting of `$service_provider` parameter.
95 - Fixes postgres server init script naming on Amazon Linux.
96 - Fixes service reload parameter on Arch Linux.
97 - Adds missing onlyif_function to sequence grant code.
98 - Fixes to the markdown of the README.
99
100 ## Supported Release 4.7.0
101 ### Summary
102 A release with a considerable amount of new features, including remote db support and several platform support updates. Various bugfixes including several to address warnings and a sizable README update.
103
104 #### Features
105 - Remote DB support - Connection-settings allows a hash of options that can be used when connecting to a remote DB.
106 - Debian 8 support.
107 - Updated systemd-override to support fedora and CentOS paths.
108 - 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.
109 - Added parameter to disable automatic service restarts on config changes.
110 - Ubuntu 15.10 compatibility.
111 - OpenBSD version is now 9.4.
112 - Added .gitattributes to maintain line endings for .sh and .rb files.
113 - Adds default postgis version for 9.5.
114 - Allows float postgresql_conf values.
115 - Schedule apt update after install of repo.
116
117 #### Bugfixes
118 - Fixed systemd-override for RedHat systems with unmanaged Yum repos.
119 - Removed inherits postgresql::params.
120 - Multi-node tests are now not ran by default.
121 - Change apt::pin to apt_postgresql_org to prevent error message.
122 - Removed syntax error near UTF8.
123 - Removal of extra blanks and backslashes in README.
124 - Double quotes now used around database name to prevent syntax error.
125 - Removes ruby 1.8.7 and puppet 2.7 from travis-ci jobs.
126 - Fixed paths to work on Amazon Linux.
127 - Fixed quotes around locale options.
128 - Huge README update.
129 - Update to use current msync configs.
130 - Fixes postgresql::server acceptance test descriptions.
131
132 ## Supported Release 4.6.1
133 ###Summary
134
135 Small release for support of newer PE versions. This increments the version of PE in the metadata.json file.
136
137 ## 2015-09-01 - Supported Release 4.6.0
138 ### Summary
139 This release adds a proxy feature for yum, Postgis improvements, and decoupling pg_hba_rule from postgresql::server.
140
141 #### Features
142 - Support setting a proxy for yum operations
143 - Allow for undefined PostGIS version
144 - Decouple pg_hba_rule from postgresql::server
145
146 #### Bugfixes
147 - Fix postgis default package name on RedHat
148
149 ## 2015-07-27 - Supported Release 4.5.0
150 ### Summary
151 This release adds sequence grants, some postgresql 9.4 fixes, and `onlyif` to
152 the psql resource.
153
154 ### Features
155 - Add `onlyif` parameter to `postgresql_psql`
156 - Add unsupported compatibility with Ubuntu 15.04
157 - Add unsupported compatibility with SLES 11/12 and OpenSuSE 13.2
158 - Add `postgresql::server::grant::onlyif_exists` attribute
159 - Add `postgresql::server::table_grant::onlyif_exists` attribute
160 - Add granting permissions on sequences
161
162 ### Bugfixes
163 - Added docs for `postgresql::server::grant`
164 - Fix `pg_hba_conf_defaults => false` to not disable ipv4/ipv6 acls
165 - Fix 9.4 for `postgresql::server::pg_hba_rule`
166
167 ## 2015-07-07 - Supported Release 4.4.2
168 ### Summary
169 This release fixes a bug introduced in 4.4.0.
170
171 #### Bugfixes
172 - Fixes `withenv` execution under Puppet 2.7. (MODULES-2185)
173
174 ## 2015-07-01 - Supported Release 4.4.1
175 ### Summary
176 This release fixes RHEL 7 & Fedora with manage_package_repo switched on.
177
178 #### Bugfixes
179 - Ensure manage_package_repo variable is in scope for systemd-override file for RHEL7
180
181 ## 2015-06-30 - Supported Release 4.4.0
182 ### Summary
183 This release has several new features, bugfixes, and test improvements.
184
185 #### Features
186 - Adds a resource to manage recovery.conf.
187 - Adds a parameter that allows the specification of a validate connection script in `postgresql::client`.
188 - Adds support for plpython package management.
189 - Adds support for postgresql-docs management.
190 - Adds ability to make `postgresql::server::schema` titles unique. (MODULES-2049)
191 - Updates puppetlabs-apt module dependency to support version 2.1.0.
192
193 #### Bugfixes
194 - Fix `postgresql_psql` parameter ordering to work on OpenBSD with Future Parser
195 - Fix setting postgres role password (MODULES-1869)
196 - Fix execution command with puppet <3.4 (MODULES-1923)
197 - Fix Puppet.newtype deprecation warning (MODULES-2007)
198 - Fix systemd override for manage_repo package versions
199 - Fix Copy snakeoil certificate and key instead of symlinking
200
201 #### Test Improvements
202 - Allows setting BEAKER and BEAKER_RSPEC versions via environment variables.
203 - Enables Unit testing on Travis CI with Puppet 4.
204 - Cleans up spec_helper_acceptance.rb to use new puppet_install_helper gem.
205
206 ## 2015-03-24 - Supported Release 4.3.0
207 ### Summary
208 This release fixes compatibility with Puppet 4 and removes opportunities for local users to view the postgresql password. It also adds a new custom resource to aid in managing replication.
209
210 #### Features
211 - Add `postgresql::server::logdir` parameter to manage the logdir
212 - Add `environment` parameter to `postgresql_psql`
213 - Add `postgresql_replication_slot` custom resource
214
215 #### Bugfixes
216 - Fix for Puppet 4
217 - Don't print postgresql\_psql password in command
218 - Allow `postgresql::validate_db_connection` for more than one host+port+database combo
219 - Fix service command on Debian 8 and up
220 - Fix `postgresql::server::extension` to work with custom user/group/port
221 - Fix `postgresql::server::initdb` to work with custom user/group/port
222 - Fix changing template1 encoding
223 - Fix default `postgresql::server::grant::object_name` value
224 - Fix idempotency of granting all tables in schema with `puppet::server::grant`
225 - Fix lint warnings
226 - Fix apt key to use 40 character key and bump puppetlabs-apt to >= 1.8.0 < 2.0.0
227
228
229 ##2015-03-10 - Supported Release 4.2.0
230 ###Summary
231
232 This release has several new features including support for server extensions, improved grant support, and a number of bugfixes.
233
234 ####Features
235 - Changes to support OpenBSD
236 - Add `service_reload` parameter to `postgresql::server`
237 - Add `comment` parameter to `postgresql::server::database` (MODULES-1153)
238 - Add `postgresql::server::extension` defined type
239 - Add postgresql versions for utopic and jessie
240 - Update `postgresql::server::grant` to support 'GRANT SCHEMA' and 'ALL TABLES IN SCHEMA'
241
242 ####Bugfixes
243 - Lint cleanup
244 - Remove outdated upgrade info from README
245 - Use correct TCP port when checking password
246 - Create role before database
247 - Fix template1 encoding on Debian
248 - Require server package before user permissions
249 - Fix `service_status` default for FreeBSD to allow PostgreSQL to start the first run
250 - Fix invalid US-ASCII byte sequence in `postgresql::server::grant` comments
251 - Reverted to default behavior for Debian systems as `pg_config` should not be overwritten (MODULES-1485)
252
253 ##2014-11-04 - Supported Release 4.1.0
254 ###Summary
255
256 This release adds the ability to change the PGDATA directory, and also includes documentation and test updates, future parser support, and a few other new features.
257
258 ####Features
259 - Future parser support
260 - Documentation updates
261 - Test updates
262 - Add a link from `/etc/sysconfig/pgsql/postgresql-${version}` to `/etc/sysconfig/pgsql/postgresql` to support init scripts from the postgresql.org repo
263 - Add support for changing the PGDATA directory
264 - Set default versions for Fedora 21 and FreeBSD
265
266 ##2014-09-03 - Supported Release 4.0.0
267 ###Summary
268
269 This release removes the uninstall ability from the module, removes the firewall
270 management, overhauls all of the acceptance testing, as well as adds better
271 support for SuSE and Fedora.
272
273 ###Backwards Incompatible changes.
274
275 - Uninstall code removal.
276 - Firewall management for Postgres.
277 - Set manage_pg_ident_conf to true.
278
279 ####Uninstallation removal
280
281 We rely heavily on the ability to uninstall and reinstall postgres throughout
282 our testing code, testing features like "can I move from the distribution
283 packages to the upstream packages through the module" and over time we've
284 learnt that the uninstall code simply doesn't work a lot of the time.  It
285 leaves traces of postgres behind or fails to remove certain packages on Ubuntu,
286 and generally causes bits to be left on your system that you didn't expect.
287
288 When we then reinstall things fail because it's not a true clean slate, and
289 this causes us enormous problems during test.  We've spent weeks and months
290 working on these tests and they simply don't hold up well across the full range
291 of PE platforms.
292
293 Due to all these problems we've decided to take a stance on uninstalling in
294 general.  We feel that in 2014 it's completely reasonable and normal to have a
295 good provisioning pipeline combined with your configuration management and the
296 "correct" way to uninstall a fully installed service like postgresql is to
297 simply reprovision the server without it in the first place.  As a general rule
298 this is how I personally like to work and I think is a good practice.
299
300 ####I'm not OK with this!
301
302 We understand that there are environments and situations in which it's not easy
303 to do that.  What if you accidently deployed Postgres on 100,000 nodes?  In the
304 future we're going to take a look at building some example 'profiles' to be
305 found under examples/ within this module that can uninstall postgres on popular
306 platforms.  These can be modified and used in your specific case to uninstall
307 postgresql.  They will be much more brute force and reliant on deleting entire
308 directories and require you to do more work up front in specifying where things
309 are installed but we think it'll prove to be a much cleaner mechanism for this
310 kind of thing rather than trying to weave it into the main module logic itself.
311
312 ####Features
313 - Removal of uninstall.
314 - Removal of firewall management.
315 - Tests ported to rspec3.
316 - Acceptance tests rewritten.
317 - Add a defined type for creating database schemas.
318 - Add a pg_ident_rule defined type.
319 - Set manage_pg_ident_conf to true.
320 - Manage pg_ident.conf by default.
321 - Improve selinux support for tablespace.
322 - Remove deprecation warnings.
323 - Support changing PGDATA on RedHat.
324 - Add SLES 11 support.
325
326 ####Bugfixes
327 - Link pg_config binary into /usr/bin.
328 - Fix fedora support by using systemd.
329 - Initdb should create xlogdir if set.
330 - Use a regular expression to match the major OS version on Ubuntu.
331
332 ##2014-07-31 - Supported Release 3.4.2
333 ###Summary
334
335 This release fixes recent Fedora versions.
336
337 ####Features
338 ####Bugfixes
339 - Fix Fedora.
340
341 ##2014-07-15 - Supported Release 3.4.1
342 ###Summary
343
344 This release merely updates metadata.json so the module can be uninstalled and
345 upgraded via the puppet module command.
346
347 ##2014-04-14 - Supported Release 3.4.0
348 ###Summary
349
350 This feature rolls up several important features, the biggest being PostGIS
351 handling and allowing `port` to be set on postgresql::server in order to
352 change the port that Postgres listens on.  We've added support for RHEL7
353 and Ubuntu 14.04, as well as allowing you to manage the service via
354 `service_ensure` finally.
355
356 ####Features
357 - Added `perl_package_name` for installing bindings.
358 - Added `service_ensure` for allowing control of services.
359 - Added `postgis_version` and postgis class for installing postgis.
360 - Added `port` for selecting the port Postgres runs on.
361 - Add support for RHEL7 and Ubuntu 14.04.
362 - Add `default_db` to postgresql::server::database.
363 - Widen the selection of unquoted parameters in postgresql_conf{}
364 - Require the service within postgresql::server::reload for RHEL7.
365 - Add `inherit` to postgresql::server::role.
366
367 ####Bugfixes
368
369 ##2014-03-04 - Supported Release 3.3.3
370 ###Summary
371
372 This is a supported release.  This release removes a testing symlink that can
373 cause trouble on systems where /var is on a seperate filesystem from the
374 modulepath.
375
376 ####Features
377 ####Bugfixes
378 ####Known Bugs
379 * SLES is not supported.
380
381 ##2014-03-04 - Supported Release 3.3.2
382 ###Summary
383 This is a supported release. It fixes a problem with updating passwords on postgresql.org distributed versions of PostgreSQL.
384
385 ####Bugfixes
386 - Correct psql path when setting password on custom versions.
387 - Documentation updates
388 - Test updates
389
390 ####Known Bugs
391 * SLES is not supported.
392
393
394 ##2014-02-12 - Version 3.3.1
395 ####Bugfix:
396 - Allow dynamic rubygems host
397
398
399 ##2014-01-28 - Version 3.3.0
400
401 ###Summary
402
403 This release rolls up a bunch of bugfixes our users have found and fixed for
404 us over the last few months.  This improves things for 9.1 users, and makes
405 this module usable on FreeBSD.
406
407 This release is dedicated to 'bma', who's suffering with Puppet 3.4.1 issues
408 thanks to Puppet::Util::SUIDManager.run_and_capture.
409
410 ####Features
411  - Add lc_ config entry settings
412  - Can pass template at database creation.
413  - Add FreeBSD support.
414  - Add support for customer `xlogdir` parameter.
415  - Switch tests from rspec-system to beaker.  (This isn't really a feature)
416
417 ####Bugfixes
418  - Properly fix the deprecated Puppet::Util::SUIDManager.run_and_capture errors.
419  - Fix NOREPLICATION option for Postgres 9.1
420  - Wrong parameter name: manage_pg_conf -> manage_pg_hba_conf
421  - Add $postgresql::server::client_package_name, referred to by install.pp
422  - Add missing service_provider/service_name descriptions in ::globals.
423  - Fix several smaller typos/issues throughout.
424  - Exec['postgresql_initdb'] needs to be done after $datadir exists
425  - Prevent defined resources from floating in the catalog.
426  - Fix granting all privileges on a table.
427  - Add some missing privileges.
428  - Remove deprecated and unused concat::fragment parameters.
429
430
431 ##2013-11-05 - Version 3.2.0
432
433 ###Summary
434
435 Add's support for Ubuntu 13.10 (and 14.04) as well as x, y, z.
436
437 ####Features
438 - Add versions for Ubuntu 13.10 and 14.04.
439 - Use default_database in validate_db_connection instead of a hardcoded
440 'postgres'
441 - Add globals/params layering for default_database.
442 - Allow specification of default database name.
443
444 ####Bugs
445 - Fixes to the README.
446
447
448 ##2013-10-25 - Version 3.1.0
449
450 ###Summary
451
452 This is a minor feature and bug fix release.
453
454 Firstly, the postgresql_psql type now includes a new parameter `search_path` which is equivalent to using `set search_path` which allows you to change the default schema search path.
455
456 The default version of Fedora 17 has now been added, so that Fedora 17 users can enjoy the module.
457
458 And finally we've extended the capabilities of the defined type postgresql::validate_db_connection so that now it can handle retrying and sleeping between retries. This feature has been monopolized to fix a bug we were seeing with startup race conditions, but it can also be used by remote systems to 'wait' for PostgreSQL to start before their Puppet run continues.
459
460 ####Features
461 - Defined $default_version for Fedora 17 (Bret Comnes)
462 - add search_path attribute to postgresql_psql resource (Jeremy Kitchen)
463 - (GH-198) Add wait and retry capability to validate_db_connection (Ken Barber)
464
465 ####Bugs
466 - enabling defined postgres user password without resetting on every puppet run (jonoterc)
467 - periods are valid in configuration variables also (Jeremy Kitchen)
468 - Add zero length string to join() function (Jarl Stefansson)
469 - add require of install to reload class (cdenneen)
470 - (GH-198) Fix race condition on postgresql startup (Ken Barber)
471 - Remove concat::setup for include in preparation for the next concat release (Ken Barber)
472
473
474 ##2013-10-14 - Version 3.0.0
475
476 Final release of 3.0, enjoy!
477
478
479 ##2013-10-14 - Version 3.0.0-rc3
480
481 ###Summary
482
483 Add a parameter to unmanage pg_hba.conf to fix a regression from 2.5, as well
484 as allowing owner to be passed into x.
485
486 ####Features
487 - `manage_pg_hba_conf` parameter added to control pg_hba.conf management.
488 - `owner` parameter added to server::db.
489
490
491 ##2013-10-09 - Version 3.0.0-rc2
492
493 ###Summary
494
495 A few bugfixes have been found since -rc1.
496
497 ####Fixes
498 - Special case for $datadir on Amazon
499 - Fix documentation about username/password for the postgresql_hash function
500
501
502 ##2013-10-01 - Version 3.0.0-rc1
503
504 ###Summary
505
506 Version 3 was a major rewrite to fix some internal dependency issues, and to
507 make the new Public API more clear. As a consequence a lot of things have
508 changed for version 3 and older revisions that we will try to outline here.
509
510 (NOTE:  The format of this CHANGELOG differs to normal in an attempt to
511 explain the scope of changes)
512
513 * Server specific objects now moved under `postgresql::server::` namespace:
514
515 To restructure server specific elements under the `postgresql::server::`
516 namespaces the following objects were renamed as such:
517
518 `postgresql::database`       -> `postgresql::server::database`
519 `postgresql::database_grant` -> `postgresql::server::database_grant`
520 `postgresql::db`             -> `postgresql::server::db`
521 `postgresql::grant`          -> `postgresql::server::grant`
522 `postgresql::pg_hba_rule`    -> `postgresql::server::pg_hba_rule`
523 `postgresql::plperl`         -> `postgresql::server::plperl`
524 `postgresql::contrib`        -> `postgresql::server::contrib`
525 `postgresql::role`           -> `postgresql::server::role`
526 `postgresql::table_grant`    -> `postgresql::server::table_grant`
527 `postgresql::tablespace`     -> `postgresql::server::tablespace`
528
529 * New `postgresql::server::config_entry` resource for managing configuration:
530
531 Previously we used the `file_line` resource to modify `postgresql.conf`. This
532 new revision now adds a new resource named `postgresql::server::config_entry`
533 for managing this file. For example:
534
535 ```puppet
536     postgresql::server::config_entry { 'check_function_bodies':
537       value => 'off',
538     }
539 ```
540
541 If you were using `file_line` for this purpose, you should change to this new
542 methodology.
543
544 * `postgresql_puppet_extras.conf` has been removed:
545
546 Now that we have a methodology for managing `postgresql.conf`, and due to
547 concerns over the file management methodology using an `exec { 'touch ...': }`
548 as a way to create an empty file the existing postgresql\_puppet\_extras.conf
549 file is no longer managed by this module.
550
551 If you wish to recreate this methodology yourself, use this pattern:
552
553 ```puppet
554     class { 'postgresql::server': }
555
556     $extras = "/tmp/include.conf"
557
558     file { $extras:
559       content => 'max_connections = 123',
560       notify  => Class['postgresql::server::service'],
561     }->
562     postgresql::server::config_entry { 'include':
563       value   => $extras,
564     }
565 ```
566
567 * All uses of the parameter `charset` changed to `encoding`:
568
569 Since PostgreSQL uses the terminology `encoding` not `charset` the parameter
570 has been made consisent across all classes and resources.
571
572 * The `postgresql` base class is no longer how you set globals:
573
574 The old global override pattern was less then optimal so it has been fixed,
575 however we decided to demark this properly by specifying these overrides in
576 the class `postgresql::global`. Consult the documentation for this class now
577 to see what options are available.
578
579 Also, some parameter elements have been moved between this and the
580 `postgresql::server` class where it made sense.
581
582 * `config_hash` parameter collapsed for the `postgresql::server` class:
583
584 Because the `config_hash` was really passing data through to what was in
585 effect an internal class (`postgresql::config`). And since we don't want this
586 kind of internal exposure the parameters were collapsed up into the
587 `postgresql::server` class directly.
588
589 * Lots of changes to 'private' or 'undocumented' classes:
590
591 If you were using these before, these have changed names. You should only use
592 what is documented in this README.md, and if you don't have what you need you
593 should raise a patch to add that feature to a public API. All internal classes
594 now have a comment at the top indicating them as private to make sure the
595 message is clear that they are not supported as Public API.
596
597 * `pg_hba_conf_defaults` parameter included to turn off default pg\_hba rules:
598
599 The defaults should be good enough for most cases (if not raise a bug) but if
600 you simply need an escape hatch, this setting will turn off the defaults. If
601 you want to do this, it may affect the rest of the module so make sure you
602 replace the rules with something that continues operation.
603
604 * `postgresql::database_user` has now been removed:
605
606 Use `postgresql::server::role` instead.
607
608 * `postgresql::psql` resource has now been removed:
609
610 Use `postgresql_psql` instead. In the future we may recreate this as a wrapper
611 to add extra capability, but it will not match the old behaviour.
612
613 * `postgresql_default_version` fact has now been removed:
614
615 It didn't make sense to have this logic in a fact any more, the logic has been
616 moved into `postgresql::params`.
617
618 * `ripienaar/concat` is no longer used, instead we use `puppetlabs/concat`:
619
620 The older concat module is now deprecated and moved into the
621 `puppetlabs/concat` namespace. Functionality is more or less identical, but
622 you may need to intervene during the installing of this package - as both use
623 the same `concat` namespace.
624
625 ---
626 ##2013-09-09 Release 2.5.0
627
628 ###Summary
629
630 The focus of this release is primarily to capture the fixes done to the
631 types and providers to make sure refreshonly works properly and to set
632 the stage for the large scale refactoring work of 3.0.0.
633
634 ####Features
635
636
637 ####Bugfixes
638 - Use boolean for refreshonly.
639 - Fix postgresql::plperl documentation.
640 - Add two missing parameters to config::beforeservice
641 - Style fixes
642
643
644 ##2013-08-01 Release 2.4.1
645
646 ###Summary
647
648 This minor bugfix release solves an idempotency issue when using plain text
649 passwords for the password_hash parameter for the postgresql::role defined
650 type. Without this, users would continually see resource changes everytime
651 your run Puppet.
652
653 ####Bugfixes
654 - Alter role call not idempotent with cleartext passwords (Ken Barber)
655
656
657 ##2013-07-19 Release 2.4.0
658
659 ###Summary
660
661 This updates adds the ability to change permissions on tables, create template
662 databases from normal databases, manage PL-Perl's postgres package, and
663 disable the management of `pg_hba.conf`.
664
665 ####Features
666 - Add `postgresql::table_grant` defined resource
667 - Add `postgresql::plperl` class
668 - Add `manage_pg_hba_conf` parameter to the `postgresql::config` class
669 - Add `istemplate` parameter to the `postgresql::database` define
670
671 ####Bugfixes
672 - Update `postgresql::role` class to be able to update roles when modified
673 instead of only on creation.
674 - Update tests
675 - Fix documentation of `postgresql::database_grant`
676
677
678 ##2.3.0
679
680 This feature release includes the following changes:
681
682 * Add a new parameter `owner` to the `database` type.  This can be used to
683   grant ownership of a new database to a specific user.  (Bruno Harbulot)
684 * Add support for operating systems other than Debian/RedHat, as long as the
685   user supplies custom values for all of the required paths, package names, etc.
686   (Chris Price)
687 * Improved integration testing (Ken Barber)
688
689
690 ##2.2.1
691
692 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.
693
694 Users of previous versions might have seen this error:
695
696     Error: Error executing SQL; psql returned 256: 'could not change directory to "/root"
697
698 This patch should correct that.
699
700 #### Detail Changes
701
702 * Set /tmp as default CWD for postgresql_psql
703
704
705 ##2.2.0
706
707 This feature release introduces a number of new features and bug fixes.
708
709 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.
710
711     class { 'postgresql::python':
712     }
713
714 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.).
715
716 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.
717
718 This release in particular has largely been contributed by the community members below, a big thanks to one and all.
719
720 #### Detailed Changes
721
722 * Add support for psycopg installation (Flaper Fesp and Dan Prince)
723 * Added default PostgreSQL version for Ubuntu 13.04 (Kamil Szymanski)
724 * Add ability to create users without a password (Bruno Harbulot)
725 * Three Puppet 2.6 fixes (Dominic Cleal)
726 * Add explicit call to concat::setup when creating concat file (Dominic Cleal)
727 * Fix readme typo (Jordi Boggiano)
728 * Update postgres_default_version for Ubuntu (Kamil Szymanski)
729 * Allow to set connection for noew role (Kamil Szymanski)
730 * Fix pg_hba_rule for postgres local access (Kamil Szymanski)
731 * Fix versions for travis-ci (Ken Barber)
732 * Add replication support (Jordi Boggiano)
733 * Cleaned up and added unit tests (Ken Barber)
734 * Generalization to provide more flexability in postgresql configuration (Karel Brezina)
735 * Create dependent directory for sudoers so tests work on Centos 5 (Ken Barber)
736 * Allow SQL commands to be run against a specific DB (Carlos Villela)
737 * Drop trailing comma to support Puppet 2.6 (Michael Arnold)
738
739
740 ##2.1.1
741
742
743 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:
744
745     Error: Could not start Service[postgresqld]: Execution of ‘/sbin/service postgresql start’ returned 1:
746
747 And the postgresql log entry:
748
749     FATAL: unrecognized configuration parameter "include"
750
751 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.
752
753 #### Detailed Changes
754
755 2013-01-21 - Ken Barber <ken@bob.sh>
756 * Only install `include` directive and included file on PostgreSQL >= 8.2
757 * Add system tests for Centos 5
758
759
760 ##2.1.0
761
762 This release is primarily a feature release, introducing some new helpful constructs to the module.
763
764 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.
765
766 We've added a new defined resource for managing your tablespace, so you can now create new tablespaces using the syntax:
767
768     postgresql::tablespace { 'dbspace':
769       location => '/srv/dbspace',
770     }
771
772 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:
773
774     postgresql::db { 'mydatabase':
775       user     => 'myuser',
776       password => 'mypassword',
777       encoding => 'UTF8',
778       locale   => 'en_NG',
779     }
780
781 There is a new class for installing the necessary packages to provide the PostgreSQL JDBC client jars:
782
783     class { 'postgresql::java': }
784
785 And we have a brand new defined resource for managing fine-grained rule sets within your pg_hba.conf access lists:
786
787     postgresql::pg_hba { 'Open up postgresql for access from 200.1.2.0/24':
788       type => 'host',
789       database => 'app',
790       user => 'app',
791       address => '200.1.2.0/24',
792       auth_method => 'md5',
793     }
794
795 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.
796
797 A big thanks to all those listed below who made this feature release possible :-).
798
799 #### Detailed Changes
800
801 2013-01-18 - Simão Fontes <simaofontes@gmail.com> & Flaper Fesp <flaper87@gmail.com>
802 * Remove trailing commas from params.pp property definition for Puppet 2.6.0 compatibility
803
804 2013-01-18 - Lauren Rother <lauren.rother@puppetlabs.com>
805 * Updated README.md to conform with best practices template
806
807 2013-01-09 - Adrien Thebo <git@somethingsinistral.net>
808 * Update postgresql_default_version to 9.1 for Debian 7.0
809
810 2013-01-28 - Karel Brezina <karel.brezina@gmail.com>
811 * Add support for tablespaces
812
813 2013-01-16 - Chris Price <chris@puppetlabs.com> & Karel Brezina <karel.brezina@gmail.com>
814 * Provide support for an 'include' config file 'postgresql_conf_extras.conf' that users can modify manually or outside of the module.
815
816 2013-01-31 - jv <jeff@jeffvier.com>
817 * Fix typo in README.pp for postgresql::db example
818
819 2013-02-03 - Ken Barber <ken@bob.sh>
820 * Add unit tests and travis-ci support
821
822 2013-02-02 - Ken Barber <ken@bob.sh>
823 * Add locale parameter support to the 'postgresql' class
824
825 2013-01-21 - Michael Arnold <github@razorsedge.org>
826 * Add a class for install the packages containing the PostgreSQL JDBC jar
827
828 2013-02-06 - fhrbek <filip.hbrek@gmail.com>
829 * Coding style fixes to reduce warnings in puppet-lint and Geppetto
830
831 2013-02-10 - Ken Barber <ken@bob.sh>
832 * Provide new defined resource for managing pg_hba.conf
833
834 2013-02-11 - Ken Barber <ken@bob.sh>
835 * Fix bug with reload of Postgresql on Redhat/Centos
836
837 2013-02-15 - Erik Dalén <dalen@spotify.com>
838 * Fix more style issues to reduce warnings in puppet-lint and Geppetto
839
840 2013-02-15 - Erik Dalén <dalen@spotify.com>
841 * Fix case whereby we were modifying a hash after creation
842
843
844 ##2.0.1
845
846 Minor bugfix release.
847
848 2013-01-16 - Chris Price <chris@puppetlabs.com>
849  * Fix revoke command in database.pp to support postgres 8.1 (43ded42)
850
851 2013-01-15 - Jordi Boggiano <j.boggiano@seld.be>
852  * Add support for ubuntu 12.10 status (3504405)
853
854 ##2.0.0
855
856 Many thanks to the following people who contributed patches to this
857 release:
858
859 * Adrien Thebo
860 * Albert Koch
861 * Andreas Ntaflos
862 * Brett Porter
863 * Chris Price
864 * dharwood
865 * Etienne Pelletier
866 * Florin Broasca
867 * Henrik
868 * Hunter Haugen
869 * Jari Bakken
870 * Jordi Boggiano
871 * Ken Barber
872 * nzakaria
873 * Richard Arends
874 * Spenser Gilliland
875 * stormcrow
876 * William Van Hevelingen
877
878 Notable features:
879
880    * Add support for versions of postgres other than the system default version
881      (which varies depending on OS distro).  This includes optional support for
882      automatically managing the package repo for the "official" postgres yum/apt
883      repos.  (Major thanks to Etienne Pelletier <epelletier@maestrodev.com> and
884      Ken Barber <ken@bob.sh> for their tireless efforts and patience on this
885      feature set!)  For example usage see `tests/official-postgresql-repos.pp`.
886
887    * Add some support for Debian Wheezy and Ubuntu Quantal
888
889    * Add new `postgres_psql` type with a Ruby provider, to replace the old
890      exec-based `psql` type.  This gives us much more flexibility around
891      executing SQL statements and controlling their logging / reports output.
892
893    * Major refactor of the "spec" tests--which are actually more like
894      acceptance tests.  We now support testing against multiple OS distros
895      via vagrant, and the framework is in place to allow us to very easily add
896      more distros.  Currently testing against Cent6 and Ubuntu 10.04.
897
898    * Fixed a bug that was preventing multiple databases from being owned by the
899      same user
900      (9adcd182f820101f5e4891b9f2ff6278dfad495c - Etienne Pelletier <epelletier@maestrodev.com>)
901
902    * Add support for ACLs for finer-grained control of user/interface access
903      (b8389d19ad78b4fb66024897097b4ed7db241930 - dharwood <harwoodd@cat.pdx.edu>)
904
905    * Many other bug fixes and improvements!
906
907 ---
908 ##1.0.0
909
910 2012-09-17 - Version 0.3.0 released
911
912 2012-09-14 - Chris Price <chris@puppetlabs.com>
913  * Add a type for validating a postgres connection (ce4a049)
914
915 2012-08-25 - Jari Bakken <jari.bakken@gmail.com>
916  * Remove trailing commas. (e6af5e5)
917
918 2012-08-16 - Version 0.2.0 released