Skip to content

Release prep v7.3.0 #1287

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
125 changes: 125 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -1721,6 +1722,130 @@ Sets a user as the owner of the database.

Default value: ``undef``

### <a name="postgresqlserverdefault_privileges"></a>`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)

##### <a name="ensure"></a>`ensure`

Data type: `Enum['present',
'absent'
]`

Specifies whether to grant or revoke the privilege.

Default value: `'present'`

##### <a name="role"></a>`role`

Data type: `String`

Specifies the role or user whom you are granting access to.

##### <a name="db"></a>`db`

Data type: `String`

Specifies the database to which you are granting access.

##### <a name="object_type"></a>`object_type`

Data type: `Pattern[
/(?i:^FUNCTIONS$)/,
/(?i:^ROUTINES$)/,
/(?i:^SEQUENCES$)/,
/(?i:^TABLES$)/,
/(?i:^TYPES$)/
]`

Specify target object type: 'FUNCTIONS', 'ROUTINES', 'SEQUENCES', 'TABLES', 'TYPES'.

##### <a name="privilege"></a>`privilege`

Data type: `String`

Specifies comma-separated list of privileges to grant. Valid options: depends on object type.

##### <a name="schema"></a>`schema`

Data type: `String`

Target schema. Defaults to 'public'.

Default value: `'public'`

##### <a name="psql_db"></a>`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`

##### <a name="psql_user"></a>`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`

##### <a name="psql_path"></a>`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`

##### <a name="port"></a>`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`

##### <a name="connect_settings"></a>`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`

##### <a name="psql_path"></a>`psql_path`

Specifies the path to the psql command.

Default value: `$postgresql::server::psql_path`

##### <a name="group"></a>`group`

Data type: `String`



Default value: `$postgresql::server::group`

### <a name="postgresqlserverextension"></a>`postgresql::server::extension`

Activate an extension on a postgresql database.
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down