Skip to content

Commit 11ffb8d

Browse files
authored
Merge branch 'main' into fedora37
2 parents 88c96e1 + 056903a commit 11ffb8d

15 files changed

+36
-22
lines changed

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ AllCops:
99
DisplayCopNames: true
1010
ExtraDetails: true
1111
DisplayStyleGuide: true
12-
TargetRubyVersion: '2.7'
12+
TargetRubyVersion: '2.6'
1313
Include:
1414
- "**/*.rb"
1515
Exclude:

.rubocop_todo.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2023-04-19 16:55:21 UTC using RuboCop version 1.48.1.
3+
# on 2023-04-25 08:02:29 UTC using RuboCop version 1.48.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -21,6 +21,12 @@ Lint/ConstantDefinitionInBlock:
2121
Exclude:
2222
- 'spec/unit/puppet/provider/postgresql_replication_slot/ruby_spec.rb'
2323

24+
# Offense count: 1
25+
# This cop supports safe autocorrection (--autocorrect).
26+
Lint/RedundantCopEnableDirective:
27+
Exclude:
28+
- 'spec/unit/puppet/type/postgresql_psql_spec.rb'
29+
2430
# Offense count: 6
2531
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
2632
Metrics/AbcSize:

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

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

5+
## [v9.0.1](https://github.com/puppetlabs/puppetlabs-postgresql/tree/v9.0.1) (2023-04-24)
6+
7+
[Full Changelog](https://github.com/puppetlabs/puppetlabs-postgresql/compare/v9.0.0...v9.0.1)
8+
9+
### Fixed
10+
11+
- Fix wrong data type for `data\_checksums` parameter [\#1420](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1420) ([smortex](https://github.com/smortex))
12+
513
## [v9.0.0](https://github.com/puppetlabs/puppetlabs-postgresql/tree/v9.0.0) (2023-04-21)
614

715
[Full Changelog](https://github.com/puppetlabs/puppetlabs-postgresql/compare/v8.3.0...v9.0.0)
@@ -323,6 +331,7 @@ All notable changes to this project will be documented in this file. The format
323331
- Fix incorrectly quoted GRANT cmd on functions [\#1150](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1150) ([olifre](https://github.com/olifre))
324332
- Correct versioncmp logic in config.pp [\#1137](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1137) ([boydtom](https://github.com/boydtom))
325333
- Treat $version as an integer for comparison, defaults to string [\#1135](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1135) ([boydtom](https://github.com/boydtom))
334+
- Allow usage of PUBLIC role [\#1134](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1134) ([Vampouille](https://github.com/Vampouille))
326335
- 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))
327336

328337
## [v6.3.0](https://github.com/puppetlabs/puppetlabs-postgresql/tree/v6.3.0) (2019-12-18)
@@ -352,7 +361,6 @@ All notable changes to this project will be documented in this file. The format
352361

353362
### Fixed
354363

355-
- Allow usage of PUBLIC role [\#1134](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1134) ([Vampouille](https://github.com/Vampouille))
356364
- \(MODULES-9658\) - custom ports are not labeled correctly [\#1099](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1099) ([blackknight36](https://github.com/blackknight36))
357365
- Fix: When assigning a tablespace to a database, no equal sign is needed in the query [\#1098](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1098) ([biertie](https://github.com/biertie))
358366
- Grant all tables in schema fixup [\#1096](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1096) ([georgehansper](https://github.com/georgehansper))
@@ -392,7 +400,6 @@ All notable changes to this project will be documented in this file. The format
392400
### Fixed
393401

394402
- \(FM-7811\) - Use postgresql 9.4 for SLES 11 sp4 [\#1057](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1057) ([david22swan](https://github.com/david22swan))
395-
- \(MODULES-8553\) Further cleanup for package tag issues [\#1055](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1055) ([HelenCampbell](https://github.com/HelenCampbell))
396403

397404
## [5.12.0](https://github.com/puppetlabs/puppetlabs-postgresql/tree/5.12.0) (2019-02-01)
398405

@@ -404,6 +411,7 @@ All notable changes to this project will be documented in this file. The format
404411

405412
### Fixed
406413

414+
- \(MODULES-8553\) Further cleanup for package tag issues [\#1055](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1055) ([HelenCampbell](https://github.com/HelenCampbell))
407415
- \(MODULES-8553\) Fix dependency on apt by explicitly using 'puppetlabs-postgresql' as tag [\#1052](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1052) ([HelenCampbell](https://github.com/HelenCampbell))
408416
- \(MODULES-8352\) Don't use empty encoding string on initdb [\#1043](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1043) ([binford2k](https://github.com/binford2k))
409417
- pdksync - \(FM-7655\) Fix rubygems-update for ruby \< 2.3 [\#1042](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1042) ([tphoney](https://github.com/tphoney))

REFERENCE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ Default value: `undef`
563563

564564
##### <a name="-postgresql--globals--data_checksums"></a>`data_checksums`
565565

566-
Data type: `Optional[String[1]]`
566+
Data type: `Optional[Boolean]`
567567

568568
Use checksums on data pages to help detect corruption by the I/O system that would otherwise be silent.
569569
Warning: This option is used during initialization by initdb, and cannot be changed later.
@@ -1204,9 +1204,9 @@ Default value: `$postgresql::params::locale`
12041204

12051205
##### <a name="-postgresql--server--data_checksums"></a>`data_checksums`
12061206

1207-
Data type: `Optional[String[1]]`
1207+
Data type: `Optional[Boolean]`
12081208

1209-
Boolean. Use checksums on data pages to help detect corruption by the I/O system that would otherwise be silent.
1209+
Use checksums on data pages to help detect corruption by the I/O system that would otherwise be silent.
12101210
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.
12111211

12121212
Default value: `$postgresql::params::data_checksums`

manifests/globals.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150

151151
Optional[String[1]] $encoding = undef,
152152
Optional[String[1]] $locale = undef,
153-
Optional[String[1]] $data_checksums = undef,
153+
Optional[Boolean] $data_checksums = undef,
154154
Optional[String[1]] $timezone = undef,
155155

156156
Optional[Boolean] $manage_pg_hba_conf = undef,

manifests/server.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
#
5757
# @param encoding 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.
5858
# @param locale 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.
59-
# @param data_checksums Boolean. Use checksums on data pages to help detect corruption by the I/O system that would otherwise be silent.
59+
# @param data_checksums Use checksums on data pages to help detect corruption by the I/O system that would otherwise be silent.
6060
# 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.
6161
#
6262
# @param timezone Set timezone for the PostgreSQL instance
@@ -138,7 +138,7 @@
138138

139139
Optional[String[1]] $encoding = $postgresql::params::encoding,
140140
Optional[String[1]] $locale = $postgresql::params::locale,
141-
Optional[String[1]] $data_checksums = $postgresql::params::data_checksums,
141+
Optional[Boolean] $data_checksums = $postgresql::params::data_checksums,
142142
Optional[String[1]] $timezone = $postgresql::params::timezone,
143143

144144
Boolean $manage_pg_hba_conf = $postgresql::params::manage_pg_hba_conf,

manifests/server/database.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@
2828

2929
# If possible use the version of the remote database, otherwise
3030
# fallback to our local DB version
31-
if $connect_settings != undef and has_key( $connect_settings, 'DBVERSION') {
31+
if $connect_settings != undef and 'DBVERSION' in $connect_settings {
3232
$version = $connect_settings['DBVERSION']
3333
} else {
3434
$version = $postgresql::server::_version
3535
}
3636

3737
# If the connection settings do not contain a port, then use the local server port
38-
if $connect_settings != undef and has_key( $connect_settings, 'PGPORT') {
38+
if $connect_settings != undef and 'PGPORT' in $connect_settings {
3939
$port = undef
4040
} else {
4141
$port = $postgresql::server::port

manifests/server/default_privileges.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
) {
3838
# If possible use the version of the remote database, otherwise
3939
# fallback to our local DB version
40-
if $connect_settings != undef and has_key( $connect_settings, 'DBVERSION') {
40+
if $connect_settings != undef and 'DBVERSION' in $connect_settings {
4141
$version = $connect_settings['DBVERSION']
4242
} else {
4343
$version = $postgresql::server::_version
@@ -64,7 +64,7 @@
6464
#
6565
if $port != undef {
6666
$port_override = $port
67-
} elsif $connect_settings != undef and has_key( $connect_settings, 'PGPORT') {
67+
} elsif $connect_settings != undef and 'PGPORT' in $connect_settings {
6868
$port_override = undef
6969
} else {
7070
$port_override = $postgresql::server::port

manifests/server/extension.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
#
7575
if $port != undef {
7676
$port_override = $port
77-
} elsif $connect_settings != undef and has_key( $connect_settings, 'PGPORT') {
77+
} elsif $connect_settings != undef and 'PGPORT' in $connect_settings {
7878
$port_override = undef
7979
} else {
8080
$port_override = $postgresql::server::port

manifests/server/grant.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
#
7676
if $port != undef {
7777
$port_override = $port
78-
} elsif $connect_settings != undef and has_key( $connect_settings, 'PGPORT') {
78+
} elsif $connect_settings != undef and 'PGPORT' in $connect_settings {
7979
$port_override = undef
8080
} else {
8181
$port_override = $postgresql::server::port

manifests/server/reassign_owned_by.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#
2727
if $port != undef {
2828
$port_override = $port
29-
} elsif $connect_settings != undef and has_key( $connect_settings, 'PGPORT') {
29+
} elsif $connect_settings != undef and 'PGPORT' in $connect_settings {
3030
$port_override = undef
3131
} else {
3232
$port_override = $postgresql::server::port

manifests/server/role.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@
5252
#
5353
if $port != undef {
5454
$port_override = $port
55-
} elsif $connect_settings != undef and has_key( $connect_settings, 'PGPORT') {
55+
} elsif $connect_settings != undef and 'PGPORT' in $connect_settings {
5656
$port_override = undef
5757
} else {
5858
$port_override = $postgresql::server::port
5959
}
6060

6161
# If possible use the version of the remote database, otherwise
6262
# fallback to our local DB version
63-
if $connect_settings != undef and has_key( $connect_settings, 'DBVERSION') {
63+
if $connect_settings != undef and 'DBVERSION' in $connect_settings {
6464
$version = $connect_settings['DBVERSION']
6565
} else {
6666
$version = $postgresql::server::_version

manifests/server/schema.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
Postgresql::Server::Db <| dbname == $db |> -> Postgresql::Server::Schema[$name]
2828

2929
# If the connection settings do not contain a port, then use the local server port
30-
if $connect_settings != undef and has_key( $connect_settings, 'PGPORT') {
30+
if $connect_settings != undef and 'PGPORT' in $connect_settings {
3131
$port = undef
3232
} else {
3333
$port = $postgresql::server::port

manifests/server/tablespace.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
$module_workdir = $postgresql::server::module_workdir
1919

2020
# If the connection settings do not contain a port, then use the local server port
21-
if $connect_settings != undef and has_key( $connect_settings, 'PGPORT') {
21+
if $connect_settings != undef and 'PGPORT' in $connect_settings {
2222
$port = undef
2323
} else {
2424
$port = $postgresql::server::port

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "puppetlabs-postgresql",
3-
"version": "9.0.0",
3+
"version": "9.0.1",
44
"author": "puppetlabs",
55
"summary": "Offers support for basic management of PostgreSQL databases.",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)