Skip to content

Release prep v8.0.0 #1325

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
Mar 3, 2022
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
29 changes: 28 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,34 @@

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.5.0](https://github.com/puppetlabs/puppetlabs-postgresql/tree/v7.5.0) (2021-09-27)
## [v8.0.0](https://github.com/puppetlabs/puppetlabs-postgresql/tree/v8.0.0) (2022-03-02)

[Full Changelog](https://github.com/puppetlabs/puppetlabs-postgresql/compare/v7.5.0...v8.0.0)

### Changed

- Support setting default\_privileges on all schemas [\#1298](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1298) ([fish-face](https://github.com/fish-face))

### Added

- add default version for Fedora 35 [\#1317](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1317) ([jflorian](https://github.com/jflorian))
- add scram-sha-256 support [\#1313](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1313) ([fe80](https://github.com/fe80))
- add support for Ubuntu Hirsute and Impish [\#1312](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1312) ([nicholascioli](https://github.com/nicholascioli))
- Allow systemd to mask postgresql service file [\#1310](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1310) ([kim-sondrup](https://github.com/kim-sondrup))
- Make ::contrib a noop on OSes without a contrib package [\#1309](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1309) ([carlosduelo](https://github.com/carlosduelo))
- pdksync - \(IAC-1753\) - Add Support for AlmaLinux 8 [\#1308](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1308) ([david22swan](https://github.com/david22swan))
- MODULES-11201: add service\_name for Ubuntu 18.04 and later [\#1306](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1306) ([moritz-makandra](https://github.com/moritz-makandra))
- pdksync - \(IAC-1751\) - Add Support for Rocky 8 [\#1305](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1305) ([david22swan](https://github.com/david22swan))
- Default privileges support schemas [\#1300](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1300) ([fish-face](https://github.com/fish-face))
- Support target\_role in default\_privileges [\#1297](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1297) ([fish-face](https://github.com/fish-face))

### Fixed

- pdksync - \(IAC-1787\) Remove Support for CentOS 6 [\#1324](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1324) ([david22swan](https://github.com/david22swan))
- Fix python package name in RHEL/CentOS 8 [\#1316](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1316) ([kajinamit](https://github.com/kajinamit))
- Drop further code for Debian 6 and Ubuntu 10 [\#1307](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1307) ([ekohl](https://github.com/ekohl))

## [v7.5.0](https://github.com/puppetlabs/puppetlabs-postgresql/tree/v7.5.0) (2021-09-28)

[Full Changelog](https://github.com/puppetlabs/puppetlabs-postgresql/compare/v7.4.1...v7.5.0)

Expand Down
48 changes: 44 additions & 4 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ The following parameters are available in the `postgresql::server::contrib` clas

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

Data type: `String`
Data type: `Optional[String[1]]`

The name of the PostgreSQL contrib package.

Expand Down Expand Up @@ -1731,6 +1731,7 @@ Manage a database defaults privileges. Only works with PostgreSQL version 9.6 an

The following parameters are available in the `postgresql::server::default_privileges` defined type:

* [`target_role`](#target_role)
* [`ensure`](#ensure)
* [`role`](#role)
* [`db`](#db)
Expand All @@ -1745,6 +1746,14 @@ The following parameters are available in the `postgresql::server::default_privi
* [`psql_path`](#psql_path)
* [`group`](#group)

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

Data type: `Optional[String]`

Target role whose created objects will receive the default privileges. Defaults to the current user.

Default value: ``undef``

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

Data type: `Enum['present',
Expand Down Expand Up @@ -1774,7 +1783,8 @@ Data type: `Pattern[
/(?i:^ROUTINES$)/,
/(?i:^SEQUENCES$)/,
/(?i:^TABLES$)/,
/(?i:^TYPES$)/
/(?i:^TYPES$)/,
/(?i:^SCHEMAS$)/
]`

Specify target object type: 'FUNCTIONS', 'ROUTINES', 'SEQUENCES', 'TABLES', 'TYPES'.
Expand All @@ -1789,7 +1799,7 @@ Specifies comma-separated list of privileges to grant. Valid options: depends on

Data type: `String`

Target schema. Defaults to 'public'.
Target schema. Defaults to 'public'. Can be set to '' to apply to all schemas.

Default value: `'public'`

Expand Down Expand Up @@ -2561,6 +2571,8 @@ The following parameters are available in the `postgresql::server::role` defined
* [`psql_group`](#psql_group)
* [`psql_path`](#psql_path)
* [`module_workdir`](#module_workdir)
* [`hash`](#hash)
* [`salt`](#salt)

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

Expand Down Expand Up @@ -2706,6 +2718,22 @@ Specifies working directory under which the psql command should be executed. May

Default value: `$postgresql::server::module_workdir`

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

Data type: `Enum['md5', 'scram-sha-256']`

Specify the hash method for pg password

Default value: `'md5'`

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

Data type: `Optional[Variant[String[1], Integer]]`

Specify the salt use for the scram-sha-256 encoding password (default username)

Default value: ``undef``

### <a name="postgresqlserverschema"></a>`postgresql::server::schema`

Create a new schema.
Expand Down Expand Up @@ -3370,7 +3398,7 @@ Type: Ruby 4.x API

This function returns the postgresql password hash from the clear text username / password

#### `postgresql::postgresql_password(Variant[String[1], Integer] $username, Variant[String[1], Sensitive[String[1]], Integer] $password, Optional[Boolean] $sensitive)`
#### `postgresql::postgresql_password(Variant[String[1], Integer] $username, Variant[String[1], Sensitive[String[1]], Integer] $password, Optional[Boolean] $sensitive, Optional[Optional[Enum['md5', 'scram-sha-256']]] $hash, Optional[Optional[Variant[String[1], Integer]]] $salt)`

The postgresql::postgresql_password function.

Expand All @@ -3394,6 +3422,18 @@ Data type: `Optional[Boolean]`

If the Postgresql-Passwordhash should be of Datatype Sensitive[String]

##### `hash`

Data type: `Optional[Optional[Enum['md5', 'scram-sha-256']]]`

Set type for password hash

##### `salt`

Data type: `Optional[Optional[Variant[String[1], Integer]]]`

Use a specific salt value for scram-sha-256, default is username

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

Type: Ruby 4.x API
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.5.0",
"version": "8.0.0",
"author": "puppetlabs",
"summary": "Offers support for basic management of PostgreSQL databases.",
"license": "Apache-2.0",
Expand Down