Skip to content

Commit 67ab5cb

Browse files
Merge pull request #1420 from puppetlabs/fix-data_checksums-data-type
Fix wrong data type for `data_checksums` parameter
2 parents f5c79f2 + e433ebb commit 67ab5cb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Diff for: REFERENCE.md

+3-3
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`

Diff for: manifests/globals.pp

+1-1
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,

Diff for: manifests/server.pp

+2-2
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,

0 commit comments

Comments
 (0)