From 97fe22bfdaf928bf15017fbfd82083b943a10059 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 22 Aug 2022 16:10:56 +0000 Subject: [PATCH] Release prep v8.2.0 --- CHANGELOG.md | 13 +++ REFERENCE.md | 215 +++++++++++++++++++++++++++----------------------- metadata.json | 2 +- 3 files changed, 132 insertions(+), 98 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 176c844192..b17c230ee9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,19 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org). +## [v8.2.0](https://github.com/puppetlabs/puppetlabs-postgresql/tree/v8.2.0) (2022-08-22) + +[Full Changelog](https://github.com/puppetlabs/puppetlabs-postgresql/compare/v8.1.0...v8.2.0) + +### Added + +- pdksync - \(GH-cat-11\) Certify Support for Ubuntu 22.04 [\#1355](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1355) ([david22swan](https://github.com/david22swan)) +- \(MODULES-11251\) Add support for backup provider "pg\_dump" [\#1319](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1319) ([fraenki](https://github.com/fraenki)) + +### Fixed + +- Ensure multiple postgresql::server::recovery resources can be defined [\#1348](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1348) ([Deroin](https://github.com/Deroin)) + ## [v8.1.0](https://github.com/puppetlabs/puppetlabs-postgresql/tree/v8.1.0) (2022-07-21) [Full Changelog](https://github.com/puppetlabs/puppetlabs-postgresql/compare/v8.0.0...v8.1.0) diff --git a/REFERENCE.md b/REFERENCE.md index 87f1e8c29a..0dad979a28 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -15,7 +15,7 @@ * [`postgresql::lib::java`](#postgresqllibjava): This class installs the postgresql jdbc connector. * [`postgresql::lib::perl`](#postgresqllibperl): This class installs the perl libs for postgresql. * [`postgresql::lib::python`](#postgresqllibpython): This class installs the python libs for postgresql. -* [`postgresql::server`](#postgresqlserver): This installs a PostgreSQL server +* [`postgresql::server`](#postgresqlserver) * [`postgresql::server::contrib`](#postgresqlservercontrib): Install the contrib postgresql packaging. * [`postgresql::server::plperl`](#postgresqlserverplperl): This class installs the PL/Perl procedural language for postgresql. * [`postgresql::server::plpython`](#postgresqlserverplpython): This class installs the PL/Python procedural language for postgresql. @@ -23,6 +23,7 @@ #### Private Classes +* `postgresql::backup::pg_dump`: "Provider" for pg_dump backup * `postgresql::dnfmodule`: Manage the DNF module * `postgresql::params` * `postgresql::repo` @@ -800,12 +801,17 @@ Default value: `'present'` ### `postgresql::server` -This installs a PostgreSQL server +The postgresql::server class. #### Parameters The following parameters are available in the `postgresql::server` class: +* [`backup_enable`](#backup_enable) +* [`backup_options`](#backup_options) +* [`backup_provider`](#backup_provider) +* [`version`](#version) +* [`extra_systemd_config`](#extra_systemd_config) * [`postgres_password`](#postgres_password) * [`package_name`](#package_name) * [`package_ensure`](#package_ensure) @@ -851,23 +857,61 @@ The following parameters are available in the `postgresql::server` class: * [`manage_pg_ident_conf`](#manage_pg_ident_conf) * [`manage_recovery_conf`](#manage_recovery_conf) * [`manage_postgresql_conf_perms`](#manage_postgresql_conf_perms) +* [`manage_selinux`](#manage_selinux) * [`module_workdir`](#module_workdir) * [`manage_datadir`](#manage_datadir) * [`manage_logdir`](#manage_logdir) * [`manage_xlogdir`](#manage_xlogdir) +* [`password_encryption`](#password_encryption) * [`roles`](#roles) * [`config_entries`](#config_entries) * [`pg_hba_rules`](#pg_hba_rules) -* [`version`](#version) -* [`extra_systemd_config`](#extra_systemd_config) -* [`manage_selinux`](#manage_selinux) -* [`password_encryption`](#password_encryption) + +##### `backup_enable` + +Data type: `Boolean` + +Whether a backup job should be enabled. + +Default value: `$postgresql::params::backup_enable` + +##### `backup_options` + +Data type: `Hash` + +A hash of options that should be passed through to the backup provider. + +Default value: `{}` + +##### `backup_provider` + +Data type: `Enum['pg_dump']` + +Specifies the backup provider to use. + +Default value: `$postgresql::params::backup_provider` + +##### `version` + +Data type: `Any` + +Deprecated. Use postgresql::globals instead. Sets PostgreSQL version + +Default value: ``undef`` + +##### `extra_systemd_config` + +Data type: `Any` + +Adds extra config to systemd config file, can for instance be used to add extra openfiles. This can be a multi line string + +Default value: `$postgresql::params::extra_systemd_config` ##### `postgres_password` Data type: `Optional[Variant[String[1], Sensitive[String[1]], Integer]]` -Sets the password for the postgres user to your specified value. By default, this setting uses the superuser account in the Postgres database, with a user called postgres and no password. + Default value: ``undef`` @@ -875,7 +919,7 @@ Default value: ``undef`` Data type: `Any` -Specifies the name of the package to use for installing the server software. + Default value: `$postgresql::params::server_package_name` @@ -883,7 +927,7 @@ Default value: `$postgresql::params::server_package_name` Data type: `Any` -Passes a value through to the package resource when creating the server instance. + Default value: `$postgresql::params::package_ensure` @@ -891,7 +935,7 @@ Default value: `$postgresql::params::package_ensure` Data type: `Any` -Sets the default package name for the PL/Perl extension. + Default value: `$postgresql::params::plperl_package_name` @@ -899,7 +943,7 @@ Default value: `$postgresql::params::plperl_package_name` Data type: `Any` -Sets the default package name for the PL/Python extension. + Default value: `$postgresql::params::plpython_package_name` @@ -907,7 +951,7 @@ Default value: `$postgresql::params::plpython_package_name` Data type: `Any` -Ensure service is installed + Default value: `$postgresql::params::service_ensure` @@ -915,7 +959,7 @@ Default value: `$postgresql::params::service_ensure` Data type: `Any` -Enable the PostgreSQL service + Default value: `$postgresql::params::service_enable` @@ -923,7 +967,7 @@ Default value: `$postgresql::params::service_enable` Data type: `Any` -Defines whether or not Puppet should manage the service. + Default value: `$postgresql::params::service_manage` @@ -931,7 +975,7 @@ Default value: `$postgresql::params::service_manage` Data type: `Any` -Overrides the default PostgreSQL service name. + Default value: `$postgresql::params::service_name` @@ -939,7 +983,7 @@ Default value: `$postgresql::params::service_name` Data type: `Any` -Overrides the default behavior to restart your PostgreSQL service when a config entry has been changed that requires a service restart to become active. + Default value: `$postgresql::params::service_restart_on_change` @@ -947,7 +991,7 @@ Default value: `$postgresql::params::service_restart_on_change` Data type: `Any` -Overrides the default PostgreSQL service provider. + Default value: `$postgresql::params::service_provider` @@ -955,7 +999,7 @@ Default value: `$postgresql::params::service_provider` Data type: `Any` -Overrides the default reload command for your PostgreSQL service. + Default value: `$postgresql::params::service_reload` @@ -963,7 +1007,7 @@ Default value: `$postgresql::params::service_reload` Data type: `Any` -Overrides the default status check command for your PostgreSQL service. + Default value: `$postgresql::params::service_status` @@ -971,7 +1015,7 @@ Default value: `$postgresql::params::service_status` Data type: `Any` -Specifies the name of the default database to connect with. On most systems this is 'postgres'. + Default value: `$postgresql::params::default_database` @@ -979,7 +1023,7 @@ Default value: `$postgresql::params::default_database` Data type: `Any` -Specifies a hash of environment variables used when connecting to a remote server. Becomes the default for other defined types, such as postgresql::server::role. + Default value: `$postgresql::globals::default_connect_settings` @@ -987,7 +1031,7 @@ Default value: `$postgresql::globals::default_connect_settings` Data type: `Any` -Address list on which the PostgreSQL service will listen + Default value: `$postgresql::params::listen_addresses` @@ -995,8 +1039,7 @@ Default value: `$postgresql::params::listen_addresses` Data type: `Any` -Specifies the port for the PostgreSQL server to listen on. Note: The same port number is used for all IP addresses the server listens on. Also, for Red Hat systems and early Debian systems, changing the port causes the server to come to a full stop before being able to make the change. -Default value: 5432. Meaning the Postgres server listens on TCP port 5432. + Default value: `$postgresql::params::port` @@ -1004,8 +1047,7 @@ Default value: `$postgresql::params::port` Data type: `Any` -Specifies the IP mask from which remote connections should be denied for the postgres superuser. -Default value: '0.0.0.0/0', which denies any remote connection. + Default value: `$postgresql::params::ip_mask_deny_postgres_user` @@ -1013,9 +1055,7 @@ Default value: `$postgresql::params::ip_mask_deny_postgres_user` Data type: `Any` -Overrides PostgreSQL defaults for remote connections. By default, PostgreSQL does not allow database user accounts to connect via TCP from remote machines. If you'd like to allow this, you can override this setting. -Set to '0.0.0.0/0' to allow database users to connect from any remote machine, or '192.168.0.0/1' to allow connections from any machine on your local '192.168' subnet. -Default value: '127.0.0.1/32'. + Default value: `$postgresql::params::ip_mask_allow_all_users` @@ -1023,7 +1063,7 @@ Default value: `$postgresql::params::ip_mask_allow_all_users` Data type: `Array[String[1]]` -Lists strings for access control for connection method, users, databases, IPv4 addresses; + Default value: `$postgresql::params::ipv4acls` @@ -1031,7 +1071,7 @@ Default value: `$postgresql::params::ipv4acls` Data type: `Array[String[1]]` -Lists strings for access control for connection method, users, databases, IPv6 addresses. + Default value: `$postgresql::params::ipv6acls` @@ -1039,7 +1079,7 @@ Default value: `$postgresql::params::ipv6acls` Data type: `Any` -Specifies the path to the initdb command. + Default value: `$postgresql::params::initdb_path` @@ -1047,7 +1087,7 @@ Default value: `$postgresql::params::initdb_path` Data type: `Any` -Deprecated. Specifies the path to the createdb command. + Default value: `$postgresql::params::createdb_path` @@ -1055,7 +1095,7 @@ Default value: `$postgresql::params::createdb_path` Data type: `Any` -Specifies the path to the psql command. + Default value: `$postgresql::params::psql_path` @@ -1063,7 +1103,7 @@ Default value: `$postgresql::params::psql_path` Data type: `Any` -Specifies the path to your pg_hba.conf file. + Default value: `$postgresql::params::pg_hba_conf_path` @@ -1071,7 +1111,7 @@ Default value: `$postgresql::params::pg_hba_conf_path` Data type: `Any` -Specifies the path to your pg_ident.conf file. + Default value: `$postgresql::params::pg_ident_conf_path` @@ -1079,7 +1119,7 @@ Default value: `$postgresql::params::pg_ident_conf_path` Data type: `Any` -Specifies the path to your postgresql.conf file. + Default value: `$postgresql::params::postgresql_conf_path` @@ -1087,7 +1127,7 @@ Default value: `$postgresql::params::postgresql_conf_path` Data type: `Optional[Stdlib::Filemode]` -Sets the mode of your postgresql.conf file. Only relevant if manage_postgresql_conf_perms is true. + Default value: `$postgresql::params::postgresql_conf_mode` @@ -1095,7 +1135,7 @@ Default value: `$postgresql::params::postgresql_conf_mode` Data type: `Any` -Specifies the path to your recovery.conf file. + Default value: `$postgresql::params::recovery_conf_path` @@ -1103,7 +1143,7 @@ Default value: `$postgresql::params::recovery_conf_path` Data type: `Any` -PostgreSQL data directory + Default value: `$postgresql::params::datadir` @@ -1111,7 +1151,7 @@ Default value: `$postgresql::params::datadir` Data type: `Any` -PostgreSQL xlog directory + Default value: `$postgresql::params::xlogdir` @@ -1119,7 +1159,7 @@ Default value: `$postgresql::params::xlogdir` Data type: `Any` -PostgreSQL log directory + Default value: `$postgresql::params::logdir` @@ -1127,7 +1167,7 @@ Default value: `$postgresql::params::logdir` Data type: `Any` -PostgreSQL log line prefix + Default value: `$postgresql::params::log_line_prefix` @@ -1135,7 +1175,7 @@ Default value: `$postgresql::params::log_line_prefix` Data type: `Any` -If false, disables the defaults supplied with the module for pg_hba.conf. This is useful if you disagree with the defaults and wish to override them yourself. Be sure that your changes of course align with the rest of the module, as some access is required to perform basic psql operations for example. + Default value: `$postgresql::params::pg_hba_conf_defaults` @@ -1143,7 +1183,7 @@ Default value: `$postgresql::params::pg_hba_conf_defaults` Data type: `Any` -Overrides the default PostgreSQL super user and owner of PostgreSQL related files in the file system. + Default value: `$postgresql::params::user` @@ -1151,7 +1191,7 @@ Default value: `$postgresql::params::user` Data type: `Any` -Overrides the default postgres user group to be used for related files in the file system. + Default value: `$postgresql::params::group` @@ -1159,7 +1199,7 @@ Default value: `$postgresql::params::group` Data type: `Any` -Explicitly calls the initdb operation after server package is installed, and before the PostgreSQL service is started. + Default value: `$postgresql::params::needs_initdb` @@ -1167,7 +1207,7 @@ Default value: `$postgresql::params::needs_initdb` Data type: `Any` -Sets the default encoding for all databases created with this module. On certain operating systems this is also used during the template1 initialization, so it becomes a default outside of the module as well. + Default value: `$postgresql::params::encoding` @@ -1175,7 +1215,7 @@ Default value: `$postgresql::params::encoding` Data type: `Any` -Sets the default database locale for all databases created with this module. On certain operating systems this is used during the template1 initialization as well, so it becomes a default outside of the module. + Default value: `$postgresql::params::locale` @@ -1183,8 +1223,7 @@ Default value: `$postgresql::params::locale` Data type: `Any` -Boolean. Use checksums on data pages to help detect corruption by the I/O system that would otherwise be silent. -Warning: This option is used during initialization by initdb, and cannot be changed later. If set, checksums are calculated for all objects, in all databases. + Default value: `$postgresql::params::data_checksums` @@ -1192,7 +1231,7 @@ Default value: `$postgresql::params::data_checksums` Data type: `Any` -Set timezone for the PostgreSQL instance + Default value: `$postgresql::params::timezone` @@ -1200,7 +1239,7 @@ Default value: `$postgresql::params::timezone` Data type: `Any` -Boolean. Whether to manage the pg_hba.conf. + Default value: `$postgresql::params::manage_pg_hba_conf` @@ -1208,7 +1247,7 @@ Default value: `$postgresql::params::manage_pg_hba_conf` Data type: `Any` -Boolean. Overwrites the pg_ident.conf file. + Default value: `$postgresql::params::manage_pg_ident_conf` @@ -1216,7 +1255,7 @@ Default value: `$postgresql::params::manage_pg_ident_conf` Data type: `Any` -Boolean. Specifies whether or not manage the recovery.conf. + Default value: `$postgresql::params::manage_recovery_conf` @@ -1224,17 +1263,23 @@ Default value: `$postgresql::params::manage_recovery_conf` Data type: `Boolean` -Whether to manage the postgresql conf file permissions. This means owner, -group and mode. Contents are not managed but should be managed through -postgresql::server::config_entry. + Default value: `$postgresql::params::manage_postgresql_conf_perms` +##### `manage_selinux` + +Data type: `Boolean` + + + +Default value: `$postgresql::params::manage_selinux` + ##### `module_workdir` Data type: `Any` -Working directory for the PostgreSQL module + Default value: `$postgresql::params::module_workdir` @@ -1242,7 +1287,7 @@ Default value: `$postgresql::params::module_workdir` Data type: `Any` -Set to false if you have file{ $datadir: } already defined + Default value: `$postgresql::params::manage_datadir` @@ -1250,7 +1295,7 @@ Default value: `$postgresql::params::manage_datadir` Data type: `Any` -Set to false if you have file{ $logdir: } already defined + Default value: `$postgresql::params::manage_logdir` @@ -1258,65 +1303,41 @@ Default value: `$postgresql::params::manage_logdir` Data type: `Any` -Set to false if you have file{ $xlogdir: } already defined -Default value: `$postgresql::params::manage_xlogdir` -##### `roles` - -Data type: `Hash[String, Hash]` - -Specifies a hash from which to generate postgresql::server::role resources. +Default value: `$postgresql::params::manage_xlogdir` -Default value: `{}` +##### `password_encryption` -##### `config_entries` +Data type: `Any` -Data type: `Hash[String, Any]` -Specifies a hash from which to generate postgresql::server::config_entry resources. -Default value: `{}` +Default value: `$postgresql::params::password_encryption` -##### `pg_hba_rules` +##### `roles` Data type: `Hash[String, Hash]` -Specifies a hash from which to generate postgresql::server::pg_hba_rule resources. - -Default value: `{}` - -##### `version` - -Data type: `Any` - -Deprecated. Use postgresql::globals instead. Sets PostgreSQL version - -Default value: ``undef`` - -##### `extra_systemd_config` -Data type: `Any` - -Adds extra config to systemd config file, can for instance be used to add extra openfiles. This can be a multi line string -Default value: `$postgresql::params::extra_systemd_config` +Default value: `{}` -##### `manage_selinux` +##### `config_entries` -Data type: `Boolean` +Data type: `Hash[String, Any]` -Default value: `$postgresql::params::manage_selinux` +Default value: `{}` -##### `password_encryption` +##### `pg_hba_rules` -Data type: `Any` +Data type: `Hash[String, Hash]` -Default value: `$postgresql::params::password_encryption` +Default value: `{}` ### `postgresql::server::contrib` diff --git a/metadata.json b/metadata.json index 4cdeaf93fd..88f27c24a1 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "puppetlabs-postgresql", - "version": "8.1.0", + "version": "8.2.0", "author": "puppetlabs", "summary": "Offers support for basic management of PostgreSQL databases.", "license": "Apache-2.0",