From b429781ac5137fa934042c5bee634ca0c2855adb Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 3 Aug 2021 12:25:03 +0000 Subject: [PATCH] Release prep v7.3.0 --- CHANGELOG.md | 15 +++++- REFERENCE.md | 125 ++++++++++++++++++++++++++++++++++++++++++++++++++ metadata.json | 2 +- 3 files changed, 140 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e2499bd36..b4ff892674 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,20 @@ 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). -## [v7.2.0](https://github.com/puppetlabs/puppetlabs-postgresql/tree/v7.2.0) (2021-05-22) +## [v7.3.0](https://github.com/puppetlabs/puppetlabs-postgresql/tree/v7.3.0) (2021-08-03) + +[Full Changelog](https://github.com/puppetlabs/puppetlabs-postgresql/compare/v7.2.0...v7.3.0) + +### Added + +- MODULES-11049 - Implement default privileges changes [\#1267](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1267) ([mtancoigne](https://github.com/mtancoigne)) + +### Fixed + +- Do not add version component to repo definition [\#1282](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1282) ([weastur](https://github.com/weastur)) +- \(MODULES-8700\) Autorequire the service in postgresql\_psql [\#1276](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1276) ([ekohl](https://github.com/ekohl)) + +## [v7.2.0](https://github.com/puppetlabs/puppetlabs-postgresql/tree/v7.2.0) (2021-05-24) [Full Changelog](https://github.com/puppetlabs/puppetlabs-postgresql/compare/v7.1.0...v7.2.0) diff --git a/REFERENCE.md b/REFERENCE.md index 37b25d5d07..e464a74fe2 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -41,6 +41,7 @@ * [`postgresql::server::database`](#postgresqlserverdatabase): Define for creating a database. * [`postgresql::server::database_grant`](#postgresqlserverdatabase_grant): Manage a database grant. * [`postgresql::server::db`](#postgresqlserverdb): Define for conveniently creating a role, database and assigning the correctpermissions. +* [`postgresql::server::default_privileges`](#postgresqlserverdefault_privileges): Manage a database defaults privileges. Only works with PostgreSQL version 9.6 and above. * [`postgresql::server::extension`](#postgresqlserverextension): Activate an extension on a postgresql database. * [`postgresql::server::grant`](#postgresqlservergrant): Define for granting permissions to roles. * [`postgresql::server::grant_role`](#postgresqlservergrant_role): Define for granting membership to a role. @@ -1721,6 +1722,130 @@ Sets a user as the owner of the database. Default value: ``undef`` +### `postgresql::server::default_privileges` + +Manage a database defaults privileges. Only works with PostgreSQL version 9.6 and above. + +#### Parameters + +The following parameters are available in the `postgresql::server::default_privileges` defined type: + +* [`ensure`](#ensure) +* [`role`](#role) +* [`db`](#db) +* [`object_type`](#object_type) +* [`privilege`](#privilege) +* [`schema`](#schema) +* [`psql_db`](#psql_db) +* [`psql_user`](#psql_user) +* [`psql_path`](#psql_path) +* [`port`](#port) +* [`connect_settings`](#connect_settings) +* [`psql_path`](#psql_path) +* [`group`](#group) + +##### `ensure` + +Data type: `Enum['present', + 'absent' + ]` + +Specifies whether to grant or revoke the privilege. + +Default value: `'present'` + +##### `role` + +Data type: `String` + +Specifies the role or user whom you are granting access to. + +##### `db` + +Data type: `String` + +Specifies the database to which you are granting access. + +##### `object_type` + +Data type: `Pattern[ + /(?i:^FUNCTIONS$)/, + /(?i:^ROUTINES$)/, + /(?i:^SEQUENCES$)/, + /(?i:^TABLES$)/, + /(?i:^TYPES$)/ + ]` + +Specify target object type: 'FUNCTIONS', 'ROUTINES', 'SEQUENCES', 'TABLES', 'TYPES'. + +##### `privilege` + +Data type: `String` + +Specifies comma-separated list of privileges to grant. Valid options: depends on object type. + +##### `schema` + +Data type: `String` + +Target schema. Defaults to 'public'. + +Default value: `'public'` + +##### `psql_db` + +Data type: `String` + +Defines the database to execute the grant against. This should not ordinarily be changed from the default. + +Default value: `$postgresql::server::default_database` + +##### `psql_user` + +Data type: `String` + +Specifies the OS user for running psql. Default value: The default user for the module, usually 'postgres'. + +Default value: `$postgresql::server::user` + +##### `psql_path` + +Data type: `String` + +Specifies the OS user for running psql. Default value: The default user for the module, usually 'postgres'. + +Default value: `$postgresql::server::psql_path` + +##### `port` + +Data type: `Integer` + +Specifies the port to access the server. Default value: The default user for the module, usually '5432'. + +Default value: `$postgresql::server::port` + +##### `connect_settings` + +Data type: `Hash` + +Specifies a hash of environment variables used when connecting to a remote server. + +Default value: `$postgresql::server::default_connect_settings` + +##### `psql_path` + +Specifies the path to the psql command. + +Default value: `$postgresql::server::psql_path` + +##### `group` + +Data type: `String` + + + +Default value: `$postgresql::server::group` + ### `postgresql::server::extension` Activate an extension on a postgresql database. diff --git a/metadata.json b/metadata.json index add8a0d753..e3c3c8f3dc 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "puppetlabs-postgresql", - "version": "7.2.0", + "version": "7.3.0", "author": "puppetlabs", "summary": "Offers support for basic management of PostgreSQL databases.", "license": "Apache-2.0",