Forge Home

postgresql

Offers support for basic management of PostgreSQL databases.

10,093,678 downloads

15,179 latest version

4.7 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 10.3.0 (latest)
  • 10.2.0
  • 10.1.0
  • 10.0.3
  • 10.0.2
  • 10.0.1
  • 10.0.0
  • 9.2.0
  • 9.1.0
  • 9.0.3
  • 9.0.2
  • 9.0.1
  • 9.0.0
  • 8.3.0
  • 8.2.1
  • 8.2.0
  • 8.1.0
  • 8.0.0
  • 7.5.0
  • 7.4.1
  • 7.4.0
  • 7.3.0
  • 7.2.0
  • 7.1.0
  • 7.0.3
  • 7.0.2
  • 7.0.1
  • 7.0.0
  • 6.10.2
  • 6.10.1
  • 6.10.0
  • 6.9.0
  • 6.8.0
  • 6.7.0
  • 6.6.0
  • 6.5.0
  • 6.4.0
  • 6.3.0
  • 6.2.0
  • 6.1.0
  • 6.0.0
  • 5.12.1
  • 5.12.0
  • 5.11.0
  • 5.10.0
  • 5.9.0
  • 5.8.0
  • 5.7.0
  • 5.6.0
  • 5.5.0
  • 5.4.0
  • 5.3.0
  • 5.2.1
  • 5.2.0
  • 5.1.0
  • 5.0.0
  • 4.9.0
  • 4.8.0
  • 4.7.1
  • 4.7.0
  • 4.6.1
  • 4.6.0
  • 4.5.0
  • 4.4.2
  • 4.4.1
  • 4.4.0
  • 4.3.0
  • 4.2.0
  • 4.1.0
  • 4.0.0
  • 3.4.2
  • 3.4.1
  • 3.4.0
  • 3.3.3
  • 3.3.2
  • 3.3.0 (deleted)
  • 3.2.0
  • 3.1.0 (deleted)
  • 3.0.0 (deleted)
  • 3.0.0-rc2 (deleted)
  • 3.0.0-rc1 (pre-release)
  • 2.5.0
  • 2.4.1
  • 2.4.0
  • 2.3.0
  • 2.2.1
  • 2.2.0
  • 2.1.1
  • 2.1.0
  • 2.0.1
  • 2.0.0
  • 1.0.0
released May 7th 2024
This version is compatible with:
  • Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
  • Puppet >= 7.0.0 < 9.0.0
  • , , , , , , , ,
Tasks:
  • sql

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'puppetlabs-postgresql', '10.3.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add puppetlabs-postgresql
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install puppetlabs-postgresql --version 10.3.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

puppetlabs/postgresql — version 10.3.0 May 7th 2024

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v10.3.0 - 2024-05-08

Full Changelog

Added

Fixed

v10.2.0 - 2024-04-11

Full Changelog

Added

  • Use modern APT keyrings on Debian family; require puppetlabs/apt 9.2 #1563 (kenyon)
  • List Debian 12 as supported system #1488 (deric)

Fixed

v10.1.0 - 2024-03-26

Full Changelog

Added

Other

v10.0.3 - 2024-01-09

Full Changelog

Fixed

v10.0.2 - 2023-11-08

Full Changelog

Fixed

v10.0.1 - 2023-10-12

Full Changelog

Fixed

  • Fix postgresql::default() return value for unknown parameters #1530 (smortex)
  • Fix the postgresql::postgresql_password() function #1529 (smortex)

v10.0.0 - 2023-10-11

Full Changelog

Changed

Added

Fixed

v9.2.0 - 2023-08-30

Full Changelog

Added

Fixed

v9.1.0 - 2023-06-12

Full Changelog

Added

v9.0.3 - 2023-05-09

Full Changelog

Fixed

v9.0.2 - 2023-05-02

Full Changelog

Fixed

v9.0.1 - 2023-04-24

Full Changelog

Fixed

  • Fix wrong data type for data_checksums parameter #1420 (smortex)

v9.0.0 - 2023-04-21

Full Changelog

Changed

v8.3.0 - 2023-04-21

Full Changelog

Added

Fixed

v8.2.1 - 2022-08-24

Full Changelog

Fixed

v8.2.0 - 2022-08-23

Full Changelog

Added

  • pdksync - (GH-cat-11) Certify Support for Ubuntu 22.04 #1355 (david22swan)
  • (MODULES-11251) Add support for backup provider "pg_dump" #1319 (fraenki)

Fixed

  • Ensure multiple postgresql::server::recovery resources can be defined #1348 (Deroin)

v8.1.0 - 2022-07-21

Full Changelog

Added

Fixed

  • (GH-1352) - Updating postgresql service version on SLES #1353 (pmcmaw)
  • Respect $service_status on Red Hat-based distros #1351 (ekohl)
  • Add version for Ubuntu 22.04 #1350 (arjenz)
  • README.md: correct postgresql_conn_validator example #1332 (bastelfreak)
  • pdksync - (GH-iac-334) Remove Support for Ubuntu 14.04/16.04 #1331 (david22swan)
  • Remove unused variable in reload.pp #1327 (ekohl)
  • Use systemctl reload on EL 7 and higher #1326 (ekohl)

v8.0.0 - 2022-03-03

Full Changelog

Changed

Added

Fixed

v7.5.0 - 2021-09-28

Full Changelog

Added

Fixed

v7.4.1 - 2021-08-25

Full Changelog

Fixed

v7.4.0 - 2021-08-24

Full Changelog

Added

Fixed

  • drop code for Debian 6/7 and Ubuntu 10.04/12.04 #1290 (evgeni)

v7.3.0 - 2021-08-03

Full Changelog

Added

Fixed

  • Do not add version component to repo definition #1282 (weastur)
  • (MODULES-8700) Autorequire the service in postgresql_psql #1276 (ekohl)

v7.2.0 - 2021-05-24

Full Changelog

Added

  • (MODULES-11069) add default version for fedora 34 #1272 (lweller)
  • MODULES-11047 - Allow managing rights for PUBLIC role #1266 (mtancoigne)

v7.1.0 - 2021-04-12

Full Changelog

Added

  • Add new common repo which contains add-ons #1190 (jorhett)

v7.0.3 - 2021-04-12

Full Changelog

v7.0.2 - 2021-03-15

Full Changelog

Fixed

  • (MODULES-10957) Override the set_sensitive_parameters method #1258 (sheenaajay)

v7.0.1 - 2021-03-08

Full Changelog

Fixed

  • Ensure port is a string in psql command #1253 (ekohl)

v7.0.0 - 2021-03-04

Full Changelog

Changed

Added

v6.10.2 - 2021-02-22

Full Changelog

Fixed

v6.10.1 - 2021-02-09

Full Changelog

v6.10.0 - 2021-02-08

Full Changelog

Added

  • Set default PostgreSQL version for FreeBSD #1227 (olevole)
  • Clean up globals logic to support CentOS 8 stream #1225 (ekohl)

Fixed

  • Also perform systemd daemon-reload on Puppet 6.1+ #1233 (ekohl)
  • (bug) fix systemd daemon-reload order when updating service files #1230 (sheenaajay)
  • Fix postgresql::sql task when password is not set #1226 (smortex)

v6.9.0 - 2021-01-18

Full Changelog

Added

Fixed

v6.8.0 - 2020-09-29

Full Changelog

Added

  • add hostgssenc type to pg_hba rules #1195 (osijan)
  • Allow removal of config_entries via main class #1187 (ekohl)

Fixed

v6.7.0 - 2020-08-28

Full Changelog

Added

  • pdksync - (IAC-973) - Update travis/appveyor to run on new default branch main #1182 (david22swan)

v6.6.0 - 2020-06-22

Full Changelog

Added

Fixed

v6.5.0 - 2020-05-13

Full Changelog

Added

  • service_ensure => true is now an allowed value (aliased to running) #1167 (binford2k)
  • Finish conversion of postgresql_acls_to_resources_hash function #1163 (alexjfisher)
  • Finish conversion of postgresql_escape function #1162 (alexjfisher)
  • Finish conversion of postgresql_password function #1161 (alexjfisher)
  • Allow usage of grant and role when not managing postgresql::server #1159 (tuxmea)
  • Add version configs for SLES 12 SP 3 to 5 #1158 (XnS)
  • Add extra parameter "extra_systemd_config" #1156 (veninga)

Fixed

  • (MODULES-10610) Use correct lower bound for concat version #1160 (ghoneycutt)

v6.4.0 - 2020-03-17

Full Changelog

Added

Fixed

v6.3.0 - 2019-12-18

Full Changelog

Added

Fixed

  • Remove duplicate REFERENCE.md file with strange unicode character at end of filename #1108 (nudgegoonies)

v6.2.0 - 2019-09-13

Full Changelog

Added

Fixed

  • (MODULES-9658) - custom ports are not labeled correctly #1099 (blackknight36)
  • Fix: When assigning a tablespace to a database, no equal sign is needed in the query #1098 (biertie)
  • Grant all tables in schema fixup #1096 (georgehansper)
  • (MODULES-9219) - puppetlabs-postgresql : catalog compilation fails when the service command is not installed #1093 (blackknight36)

v6.1.0 - 2019-06-04

Full Changelog

Added

v6.0.0 - 2019-05-14

Full Changelog

Changed

Added

Fixed

5.12.1 - 2019-02-14

Full Changelog

Fixed

5.12.0 - 2019-02-01

Full Changelog

Added

  • (MODULES-3804) Fix sort order of pg_hba_rule entries #1040 (olavmrk)

Fixed

  • (MODULES-8553) Fix dependency on apt by explicitly using 'puppetlabs-postgresql' as tag #1052 (HelenCampbell)
  • (MODULES-8352) Don't use empty encoding string on initdb #1043 (binford2k)
  • pdksync - (FM-7655) Fix rubygems-update for ruby < 2.3 #1042 (tphoney)

5.11.0 - 2018-11-21

Full Changelog

Added

Fixed

  • Strip quotes from role names #1034 (jstuart)
  • Ignore .psqlrc so output is clean and doesn't break Puppet #1021 (flaviogurgel)
  • Change initdb option '--xlogdir' to '-X' for PG10 compatibility #976 (fcanovai)

5.10.0 - 2018-09-27

Full Changelog

Added

  • pdksync - (MODULES-6805) metadata.json shows support for puppet 6 #1026 (tphoney)

5.9.0 - 2018-09-07

Full Changelog

Added

  • pdksync - (MODULES-7705) - Bumping stdlib dependency from < 5.0.0 to < 6.0.0 #1018 (pmcmaw)

5.8.0 - 2018-08-07

Full Changelog

Added

5.7.0 - 2018-07-20

Full Changelog

Added

  • (MODULES-7479) Update postgresql to support Ubuntu 18.04 #1005 (david22swan)
  • (MODULES-6542) - Adding SLES 11 & 12 to metadata #1001 (pmcmaw)

Fixed

  • (MODULES-7479) Ensure net-tools is installed when testing on Ubuntu 18.04 #1006 (david22swan)
  • (MODULES-7460) - Updating grant table to include INSERT privileges #1004 (pmcmaw)
  • Fix packages choice for ubuntu 17.10 #1000 (fflorens)

5.6.0 - 2018-06-21

Full Changelog

5.5.0 - 2018-06-19

Full Changelog

Changed

  • Fix creation of recovery.conf file when recovery configuration is not specified #995 (cdloh)

Added

Fixed

5.4.0 - 2018-03-27

Full Changelog

Added

  • (MODULES-6330) PDK convert 1.4.1 #961 (pmcmaw)
  • Parameter ensure on postgresql::server::grant and postgresql::server::database_grant #891 (georgehansper)

Fixed

  • Documentation error, reassign_owned_by uses *_role not *_owner. #958 (computermouth)

5.3.0 - 2018-02-26

Full Changelog

Added

Fixed

  • (maint) - Skip run_puppet_access_login on LTS #956 (pmcmaw)
  • (MODULES-6608) - Adding puppet requirement for tasks versioncmp in beaker-task_helper #952 (pmcmaw)
  • defaulted psql_path to postgresql::server::psql_path #947 (crayfishx)
  • According to the puppet doc, Pattern should be a list of regex. #942 (PierreR)
  • This pull request fixes an augeas warning #935 (iakovgan)

5.2.1 - 2017-11-14

Full Changelog

Fixed

  • (MODULES-5956) fixes for postgresql release #934 (jbondpdx)
  • add parameter "version" to postgresql::server::extension - fix dependency on database #932 (georgehansper)

5.2.0 - 2017-10-09

Full Changelog

Added

  • add parameter "version" to postgresql::server::extension to update the extension version #896 (georgehansper)

Fixed

  • (PUP-8008) monkey patch spec_helper_acceptance #925 (eputnam)
  • (PUP-8008) monkey patch spec_helper_acceptance #924 (eputnam)
  • enhance --data-checksums on initdb #915 (mmoll)
  • MODULES-5378 fix the change in error message #909 (tphoney)
  • MODULES-5378 fix error message checking in test #908 (tphoney)
  • Default contcat order #900 (matonb)

5.1.0 - 2017-07-17

Full Changelog

Added

5.0.0 - 2017-06-21

Full Changelog

Changed

Added

  • (MODULES-1394) replace validate_db_connection type with custom type #879 (eputnam)
  • [msync] 786266 Implement puppet-module-gems, a45803 Remove metadata.json from locales config #860 (wilson208)
  • (FM-6116) - Adding POT file for metadata.json #857 (pmcmaw)
  • Allowo to disable managing passwords for users #846 (bjoernhaeuser)

Fixed

  • (maint) fix for connection validator #882 (eputnam)
  • (MODULES-5050) Fix for grant_schema_spec #881 (eputnam)
  • [MODULES-4598] Revert "Revert "fix default params for SUSE family OSes"" #863 (mmoll)
  • [MODULES-4598] Revert "fix default params for SUSE family OSes" #858 (wilson208)

4.9.0 - 2017-03-09

Full Changelog

Added

  • (MODULES-1508) add support for unix_socket_directories #845 (eputnam)
  • (MODULES-1127) allow LANGUAGE as valid object_type #838 (eputnam)
  • Support granting SELECT and UPDATE permission on sequences (MODULES-4158) #823 (chris-reeves)

Fixed

  • (MODULES-1707) add logic to params.pp for jdbc driver package on Debian #847 (eputnam)
  • (maint) Schemas for a db should come after db #840 (hunner)
  • Fix typo: hostnosssl #837 (df7cb)
  • Fix SQL style on role.pp #794 (hasegeli)
  • (#3858) Fix unless check in grant_role to work with roles as well as users #788 (thunderkeys)

4.8.0 - 2016-07-26

Full Changelog

4.7.1 - 2016-02-18

Full Changelog

Fixed

4.7.0 - 2016-02-02

Full Changelog

Added

  • (MODULES-2960) Allow float postgresql_conf values #721 (hunner)

4.6.1 - 2015-12-04

Full Changelog

4.6.0 - 2015-09-01

Full Changelog

Fixed

  • Fix postgis default package name on RedHat #674 (ckaenzig)

4.5.0 - 2015-07-28

Full Changelog

4.4.2 - 2015-07-08

Full Changelog

Added

  • (#2056) Added 9.4, corrected past versions based on docs #625 (cjestel)

Fixed

  • (MODULES-2185) Fix withenv execution under Puppet 2.7 #664 (domcleal)

4.4.1 - 2015-07-01

Full Changelog

Fixed

  • (MODULES-2181) Fix variable scope for systemd-override #659 (kbarber)

4.4.0 - 2015-06-30

Full Changelog

Added

  • (MODULES-1761) Provide defined resource for managing recovery.conf #603 (dacrome)

Fixed

  • (FM-2931) fixes logic problem with onlyif type param validation. #654 (bmjen)
  • Fixed systemd override for manage_repo package versions #639 (cdenneen)
  • Apt fix #618 (tphoney)
  • Fix URLs in metadata.json #599 (raphink)

4.3.0 - 2015-03-25

Full Changelog

4.2.0 - 2015-03-10

Full Changelog

Fixed

4.1.0 - 2014-11-04

Full Changelog

Fixed

4.0.0 - 2014-09-10

Full Changelog

Fixed

  • Fixes the accidental erasing of pg_ident.conf #464 (txaj)

3.4.2 - 2014-08-06

Full Changelog

3.4.1 - 2014-07-21

Full Changelog

3.4.0 - 2014-07-09

Full Changelog

Added

Fixed

3.3.3 - 2014-03-06

Full Changelog

3.3.2 - 2014-03-03

Full Changelog

3.3.1 - 2014-02-12

Full Changelog

3.3.0 - 2014-01-28

Full Changelog

Added

  • Add support to custom xlogdir parameter #256 (mnencia)

Fixed

3.2.0 - 2013-11-05

Full Changelog

3.1.0 - 2013-10-25

Full Changelog

Fixed

  • (GH-198) Fix race condition on startup #292 (kbarber)

3.0.0 - 2013-10-16

Full Changelog

3.0.0-rc3 - 2013-10-16

Full Changelog

3.0.0-rc2 - 2013-10-09

Full Changelog

3.0.0-rc1 - 2013-10-02

Full Changelog

Fixed

2.5.0 - 2013-09-09

Full Changelog

2.4.1 - 2013-08-01

Full Changelog

Fixed

  • (GH-216) Alter role call not idempotent with cleartext passwords #225 (kbarber)

2.4.0 - 2013-08-01

Full Changelog

2.3.0 - 2013-06-06

Full Changelog

2.2.1 - 2013-04-29

Full Changelog

2.2.0 - 2013-04-26

Full Changelog

2.1.1 - 2013-02-22

Full Changelog

2.1.0 - 2013-02-20

Full Changelog

2.0.1 - 2013-01-30

Full Changelog

2.0.0 - 2013-01-15

Full Changelog

Added

Fixed

1.0.0 - 2012-10-24

Full Changelog

release-0.3.0 - 2012-09-17

Full Changelog

release-0.2.0 - 2012-08-16

Full Changelog

release-0.0.1 - 2012-05-02

Full Changelog