Skip to content

Merge back for Release version 6.4.0 #1153

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 18, 2020
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
25 changes: 24 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,26 @@

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).

## [v6.3.0](https://github.com/puppetlabs/puppetlabs-postgresql/tree/v6.3.0) (2019-12-17)
## [v6.4.0](https://github.com/puppetlabs/puppetlabs-postgresql/tree/v6.4.0) (2020-03-17)

[Full Changelog](https://github.com/puppetlabs/puppetlabs-postgresql/compare/v6.3.0...v6.4.0)

### Added

- Add Fedora 31 compatibility [\#1141](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1141) ([blackknight36](https://github.com/blackknight36))
- feat: enable different database resource name in extension [\#1136](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1136) ([jfroche](https://github.com/jfroche))
- pdksync - \(FM-8581\) - Debian 10 added to travis and provision file refactored [\#1130](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1130) ([david22swan](https://github.com/david22swan))
- Puppet 4 functions [\#1129](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1129) ([binford2k](https://github.com/binford2k))

### Fixed

- Fix incorrectly quoted GRANT cmd on functions [\#1150](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1150) ([olifre](https://github.com/olifre))
- Correct versioncmp logic in config.pp [\#1137](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1137) ([boydtom](https://github.com/boydtom))
- Treat $version as an integer for comparison, defaults to string [\#1135](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1135) ([boydtom](https://github.com/boydtom))
- Allow usage of PUBLIC role [\#1134](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1134) ([Vampouille](https://github.com/Vampouille))
- fix missing systemd override config for EL8 \(CentOS and RHEL\) [\#1131](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1131) ([david-barbion](https://github.com/david-barbion))

## [v6.3.0](https://github.com/puppetlabs/puppetlabs-postgresql/tree/v6.3.0) (2019-12-18)

[Full Changelog](https://github.com/puppetlabs/puppetlabs-postgresql/compare/v6.2.0...v6.3.0)

Expand All @@ -12,6 +31,10 @@ All notable changes to this project will be documented in this file. The format
- \(FM-8679\) - Support added for CentOS 8 [\#1117](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1117) ([david22swan](https://github.com/david22swan))
- MODULES-10041 - allow define password\_encryption for version above 10 [\#1111](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1111) ([k2patel](https://github.com/k2patel))

### Fixed

- Remove duplicate REFERENCE.md file with strange unicode character at end of filename [\#1108](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1108) ([nudgegoonies](https://github.com/nudgegoonies))

## [v6.2.0](https://github.com/puppetlabs/puppetlabs-postgresql/tree/v6.2.0) (2019-09-12)

[Full Changelog](https://github.com/puppetlabs/puppetlabs-postgresql/compare/v6.1.0...v6.2.0)
Expand Down
222 changes: 213 additions & 9 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ _Private Classes_
**Functions**

* [`postgresql::default`](#postgresqldefault): This function pull default values from the `params` class or `globals` class if the value is not present in `params`.
* [`postgresql::postgresql_acls_to_resources_hash`](#postgresqlpostgresql_acls_to_resources_hash): This internal function translates the ipv(4|6)acls format into a resource
* [`postgresql::postgresql_escape`](#postgresqlpostgresql_escape): This function safely escapes a string using a consistent random tag
* [`postgresql::postgresql_password`](#postgresqlpostgresql_password): This function returns the postgresql password hash from the clear text username / password
* [`postgresql_acls_to_resources_hash`](#postgresql_acls_to_resources_hash): This internal function translates the ipv(4|6)acls format into a resource suitable for create_resources. It is not intended to be used outsid
* [`postgresql_escape`](#postgresql_escape): This function safely escapes a string using a consistent random tag
* [`postgresql_password`](#postgresql_password): This function returns the postgresql password hash from the clear text username / password
Expand Down Expand Up @@ -493,6 +496,30 @@ Allow Puppet to manage the recovery.conf file.

Default value: `undef`

##### `manage_datadir`

Data type: `Any`

Set to false if you have file{ $datadir: } already defined

Default value: `undef`

##### `manage_logdir`

Data type: `Any`

Set to false if you have file{ $logdir: } already defined

Default value: `undef`

##### `manage_xlogdir`

Data type: `Any`

Set to false if you have file{ $xlogdir: } already defined

Default value: `undef`

##### `manage_package_repo`

Data type: `Any`
Expand All @@ -507,6 +534,14 @@ Data type: `Any`

Specifies working directory under which the psql command should be executed. May need to specify if '/tmp' is on volume mounted with noexec option.

Default value: `undef`

##### `manage_selinux`

Data type: `Any`



Default value: `undef`

### postgresql::lib::devel
Expand Down Expand Up @@ -974,14 +1009,6 @@ Set timezone for the PostgreSQL instance

Default value: $postgresql::params::timezone

##### `password_encryption`

Data type: `Any`

Set Password Authentication when password-based authentication methods used

Default value: $postgresql::params::password_encryption

##### `manage_pg_hba_conf`

Data type: `Any`
Expand Down Expand Up @@ -1014,6 +1041,30 @@ Working directory for the PostgreSQL module

Default value: $postgresql::params::module_workdir

##### `manage_datadir`

Data type: `Any`

Set to false if you have file{ $datadir: } already defined

Default value: $postgresql::params::manage_datadir

##### `manage_logdir`

Data type: `Any`

Set to false if you have file{ $logdir: } already defined

Default value: $postgresql::params::manage_logdir

##### `manage_xlogdir`

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]`
Expand Down Expand Up @@ -1046,6 +1097,22 @@ Sets PostgreSQL version

Default value: `undef`

##### `manage_selinux`

Data type: `Boolean`



Default value: $postgresql::params::manage_selinux

##### `password_encryption`

Data type: `Any`



Default value: $postgresql::params::password_encryption

### postgresql::server::contrib

Install the contrib postgresql packaging.
Expand Down Expand Up @@ -1479,7 +1546,15 @@ Data type: `Any`

Specifies a hash of environment variables used when connecting to a remote server.

Default value: $postgresql::server::default_connect_settings
Default value: postgresql::default('default_connect_settings')

##### `database_resource_name`

Data type: `Any`

Specifies the resource name of the DB being managed. Defaults to the parameter $database, if left blank.

Default value: $database

### postgresql::server::grant

Expand Down Expand Up @@ -1592,6 +1667,14 @@ Specifies whether to grant or revoke the privilege. Default is to grant the priv

Default value: 'present'

##### `object_arguments`

Data type: `Array[String[1],0]`



Default value: []

### postgresql::server::grant_role

Define for granting membership to a role.
Expand Down Expand Up @@ -2244,6 +2327,14 @@ Data type: `Any`

Specifies the path to locate this tablespace.

##### `manage_location`

Data type: `Any`

Set to false if you have file{ $location: } already defined

Default value: `true`

##### `owner`

Data type: `Any`
Expand Down Expand Up @@ -2632,6 +2723,119 @@ Data type: `String`



### postgresql::postgresql_acls_to_resources_hash

Type: Ruby 4.x API

This is an autogenerated function, ported from the original legacy version.
It /should work/ as is, but will not have all the benefits of the modern
function API. You should see the function docs to learn how to add function
signatures for type safety and to document this function using puppet-strings.

https://puppet.com/docs/puppet/latest/custom_functions_ruby.html

---- original file header ----
postgresql_acls_to_resources_hash.rb
---- original file header ----

suitable for create_resources. It is not intended to be used outside of the
postgresql internal classes/defined resources.

@return This function accepts an array of strings that are pg_hba.conf rules. It
will return a hash that can be fed into create_resources to create multiple
individual pg_hba_rule resources.

The second parameter is an identifier that will be included in the namevar
to provide uniqueness. It must be a string.

The third parameter is an order offset, so you can start the order at an
arbitrary starting point.

#### `postgresql::postgresql_acls_to_resources_hash(Any *$args)`

This is an autogenerated function, ported from the original legacy version.
It /should work/ as is, but will not have all the benefits of the modern
function API. You should see the function docs to learn how to add function
signatures for type safety and to document this function using puppet-strings.

https://puppet.com/docs/puppet/latest/custom_functions_ruby.html

---- original file header ----
postgresql_acls_to_resources_hash.rb
---- original file header ----

suitable for create_resources. It is not intended to be used outside of the
postgresql internal classes/defined resources.

@return This function accepts an array of strings that are pg_hba.conf rules. It
will return a hash that can be fed into create_resources to create multiple
individual pg_hba_rule resources.

The second parameter is an identifier that will be included in the namevar
to provide uniqueness. It must be a string.

The third parameter is an order offset, so you can start the order at an
arbitrary starting point.

Returns: `Data type` Describe what the function returns here

##### `*args`

Data type: `Any`

The original array of arguments. Port this to individually managed params
to get the full benefit of the modern function API.

### postgresql::postgresql_escape

Type: Ruby 4.x API

postgresql_escape.rb
---- original file header ----

@return Safely escapes a string using $$ using a random tag which should be consistent

#### `postgresql::postgresql_escape(Any *$args)`

postgresql_escape.rb
---- original file header ----

@return Safely escapes a string using $$ using a random tag which should be consistent

Returns: `Data type` Describe what the function returns here

##### `*args`

Data type: `Any`

The original array of arguments. Port this to individually managed params
to get the full benefit of the modern function API.

### postgresql::postgresql_password

Type: Ruby 4.x API

postgresql_password.rb
---- original file header ----

@return Returns the postgresql password hash from the clear text username / password.

#### `postgresql::postgresql_password(Any *$args)`

postgresql_password.rb
---- original file header ----

@return Returns the postgresql password hash from the clear text username / password.

Returns: `Data type` Describe what the function returns here

##### `*args`

Data type: `Any`

The original array of arguments. Port this to individually managed params
to get the full benefit of the modern function API.

### postgresql_acls_to_resources_hash

Type: Ruby 3.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": "6.3.0",
"version": "6.4.0",
"author": "Inkling/Puppet Labs",
"summary": "Offers support for basic management of PostgreSQL databases.",
"license": "Apache-2.0",
Expand Down