Skip to content

Commit 4bb668d

Browse files
author
Daniel Carabas
committed
Add description for recovery and validation
1 parent d43efbb commit 4bb668d

File tree

3 files changed

+50
-50
lines changed

3 files changed

+50
-50
lines changed

REFERENCE.md

+25-25
Original file line numberDiff line numberDiff line change
@@ -1838,119 +1838,119 @@ The following parameters are available in the `postgresql::server::recovery` def
18381838

18391839
Data type: `Any`
18401840

1841-
1841+
The shell command to execute to retrieve an archived segment of the WAL file series.
18421842

18431843
Default value: `undef`
18441844

18451845
##### `archive_cleanup_command`
18461846

18471847
Data type: `Any`
18481848

1849-
1849+
This optional parameter specifies a shell command that will be executed at every restartpoint.
18501850

18511851
Default value: `undef`
18521852

18531853
##### `recovery_end_command`
18541854

18551855
Data type: `Any`
18561856

1857-
1857+
This parameter specifies a shell command that will be executed once only at the end of recovery.
18581858

18591859
Default value: `undef`
18601860

18611861
##### `recovery_target_name`
18621862

18631863
Data type: `Any`
18641864

1865-
1865+
This parameter specifies the named restore point (created with pg_create_restore_point()) to which recovery will proceed.
18661866

18671867
Default value: `undef`
18681868

18691869
##### `recovery_target_time`
18701870

18711871
Data type: `Any`
18721872

1873-
1873+
This parameter specifies the time stamp up to which recovery will proceed.
18741874

18751875
Default value: `undef`
18761876

18771877
##### `recovery_target_xid`
18781878

18791879
Data type: `Any`
18801880

1881-
1881+
This parameter specifies the transaction ID up to which recovery will proceed.
18821882

18831883
Default value: `undef`
18841884

18851885
##### `recovery_target_inclusive`
18861886

18871887
Data type: `Any`
18881888

1889-
1889+
Specifies whether to stop just after the specified recovery target (true), or just before the recovery target (false).
18901890

18911891
Default value: `undef`
18921892

18931893
##### `recovery_target`
18941894

18951895
Data type: `Any`
18961896

1897-
1897+
This parameter specifies that recovery should end as soon as a consistent state is reached, i.e. as early as possible.
18981898

18991899
Default value: `undef`
19001900

19011901
##### `recovery_target_timeline`
19021902

19031903
Data type: `Any`
19041904

1905-
1905+
Specifies recovering into a particular timeline.
19061906

19071907
Default value: `undef`
19081908

19091909
##### `pause_at_recovery_target`
19101910

19111911
Data type: `Any`
19121912

1913-
1913+
Specifies whether recovery should pause when the recovery target is reached.
19141914

19151915
Default value: `undef`
19161916

19171917
##### `standby_mode`
19181918

19191919
Data type: `Any`
19201920

1921-
Can be specified with the string ('on'/'off'), or by using a Boolean value (true/false).
1921+
Specifies whether to start the PostgreSQL server as a standby.
19221922

19231923
Default value: `undef`
19241924

19251925
##### `primary_conninfo`
19261926

19271927
Data type: `Any`
19281928

1929-
1929+
Specifies a connection string to be used for the standby server to connect with the primary.
19301930

19311931
Default value: `undef`
19321932

19331933
##### `primary_slot_name`
19341934

19351935
Data type: `Any`
19361936

1937-
1937+
Optionally specifies an existing replication slot to be used when connecting to the primary via streaming replication to control resource removal on the upstream node.
19381938

19391939
Default value: `undef`
19401940

19411941
##### `trigger_file`
19421942

19431943
Data type: `Any`
19441944

1945-
1945+
Specifies a trigger file whose presence ends recovery in the standby.
19461946

19471947
Default value: `undef`
19481948

19491949
##### `recovery_min_apply_delay`
19501950

19511951
Data type: `Any`
19521952

1953-
1953+
This parameter allows you to delay recovery by a fixed period of time, measured in milliseconds if no unit is specified.
19541954

19551955
Default value: `undef`
19561956

@@ -2266,79 +2266,79 @@ The following parameters are available in the `postgresql::validate_db_connectio
22662266

22672267
Data type: `Any`
22682268

2269-
2269+
Database host address
22702270

22712271
Default value: `undef`
22722272

22732273
##### `database_name`
22742274

22752275
Data type: `Any`
22762276

2277-
2277+
Specifies the name of the database you wish to test.
22782278

22792279
Default value: `undef`
22802280

22812281
##### `database_password`
22822282

22832283
Data type: `Any`
22842284

2285-
2285+
Specifies the password to connect with.
22862286

22872287
Default value: `undef`
22882288

22892289
##### `database_username`
22902290

22912291
Data type: `Any`
22922292

2293-
2293+
Specifies the username to connect with.
22942294

22952295
Default value: `undef`
22962296

22972297
##### `database_port`
22982298

22992299
Data type: `Any`
23002300

2301-
2301+
Defines the port to use when connecting.
23022302

23032303
Default value: `undef`
23042304

23052305
##### `connect_settings`
23062306

23072307
Data type: `Any`
23082308

2309-
2309+
Specifies a hash of environment variables used when connecting to a remote server.
23102310

23112311
Default value: `undef`
23122312

23132313
##### `run_as`
23142314

23152315
Data type: `Any`
23162316

2317-
2317+
Specifies the user to run the psql command as.
23182318

23192319
Default value: `undef`
23202320

23212321
##### `sleep`
23222322

23232323
Data type: `Any`
23242324

2325-
2325+
Sets the number of seconds to sleep for before trying again after a failure.
23262326

23272327
Default value: 2
23282328

23292329
##### `tries`
23302330

23312331
Data type: `Any`
23322332

2333-
2333+
Sets the number of attempts after failure before giving up and failing the resource.
23342334

23352335
Default value: 10
23362336

23372337
##### `create_db_first`
23382338

23392339
Data type: `Any`
23402340

2341-
2341+
Creates the database when obtaining a successful connection.
23422342

23432343
Default value: `true`
23442344

manifests/server/recovery.pp

+15-15
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66
# A detailed description of all listed parameters can be found in the PostgreSQL documentation.
77
# Only the specified parameters are recognized in the template. The recovery.conf is only created if at least one parameter is set and manage_recovery_conf is set to true.
88
#
9-
# @param restore_command
10-
# @param archive_cleanup_command
11-
# @param recovery_end_command
12-
# @param recovery_target_name
13-
# @param recovery_target_time
14-
# @param recovery_target_xid
15-
# @param recovery_target_inclusive
16-
# @param recovery_target
17-
# @param recovery_target_timeline
18-
# @param pause_at_recovery_target
19-
# @param standby_mode Can be specified with the string ('on'/'off'), or by using a Boolean value (true/false).
20-
# @param primary_conninfo
21-
# @param primary_slot_name
22-
# @param trigger_file
23-
# @param recovery_min_apply_delay
9+
# @param restore_command The shell command to execute to retrieve an archived segment of the WAL file series.
10+
# @param archive_cleanup_command This optional parameter specifies a shell command that will be executed at every restartpoint.
11+
# @param recovery_end_command This parameter specifies a shell command that will be executed once only at the end of recovery.
12+
# @param recovery_target_name This parameter specifies the named restore point (created with pg_create_restore_point()) to which recovery will proceed.
13+
# @param recovery_target_time This parameter specifies the time stamp up to which recovery will proceed.
14+
# @param recovery_target_xid This parameter specifies the transaction ID up to which recovery will proceed.
15+
# @param recovery_target_inclusive Specifies whether to stop just after the specified recovery target (true), or just before the recovery target (false).
16+
# @param recovery_target This parameter specifies that recovery should end as soon as a consistent state is reached, i.e. as early as possible.
17+
# @param recovery_target_timeline Specifies recovering into a particular timeline.
18+
# @param pause_at_recovery_target Specifies whether recovery should pause when the recovery target is reached.
19+
# @param standby_mode Specifies whether to start the PostgreSQL server as a standby.
20+
# @param primary_conninfo Specifies a connection string to be used for the standby server to connect with the primary.
21+
# @param primary_slot_name Optionally specifies an existing replication slot to be used when connecting to the primary via streaming replication to control resource removal on the upstream node.
22+
# @param trigger_file Specifies a trigger file whose presence ends recovery in the standby.
23+
# @param recovery_min_apply_delay This parameter allows you to delay recovery by a fixed period of time, measured in milliseconds if no unit is specified.
2424
# @param target Provides the target for the rule, and is generally an internal only property. Use with caution.
2525
define postgresql::server::recovery(
2626
$restore_command = undef,

manifests/validate_db_connection.pp

+10-10
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
# instance (host/port/user/password/database name).
77
#
88
#
9-
# @param database_host
10-
# @param database_name
11-
# @param database_password
12-
# @param database_username
13-
# @param database_port
14-
# @param connect_settings
15-
# @param run_as
16-
# @param sleep
17-
# @param tries
18-
# @param create_db_first
9+
# @param database_host Database host address
10+
# @param database_name Specifies the name of the database you wish to test.
11+
# @param database_password Specifies the password to connect with.
12+
# @param database_username Specifies the username to connect with.
13+
# @param database_port Defines the port to use when connecting.
14+
# @param connect_settings Specifies a hash of environment variables used when connecting to a remote server.
15+
# @param run_as Specifies the user to run the psql command as.
16+
# @param sleep Sets the number of seconds to sleep for before trying again after a failure.
17+
# @param tries Sets the number of attempts after failure before giving up and failing the resource.
18+
# @param create_db_first Creates the database when obtaining a successful connection.
1919
#
2020
define postgresql::validate_db_connection(
2121
$database_host = undef,

0 commit comments

Comments
 (0)