Skip to content

Commit d43efbb

Browse files
author
Daniel Carabas
committed
Fix missing descriptions
1 parent 330e537 commit d43efbb

20 files changed

+90
-93
lines changed

REFERENCE.md

+44-54
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ _Public Classes_
1414
* [`postgresql::lib::java`](#postgresqllibjava): This class installs the postgresql jdbc connector.
1515
* [`postgresql::lib::perl`](#postgresqllibperl): This class installs the perl libs for postgresql.
1616
* [`postgresql::lib::python`](#postgresqllibpython): This class installs the python libs for postgresql.
17-
* [`postgresql::repo::apt_postgresql_org`](#postgresqlrepoapt_postgresql_org): PRIVATE CLASS: do not use directly
18-
* [`postgresql::repo::yum_postgresql_org`](#postgresqlrepoyum_postgresql_org): PRIVATE CLASS: do not use directly
1917
* [`postgresql::server`](#postgresqlserver): This installs a PostgreSQL server
2018
* [`postgresql::server::contrib`](#postgresqlservercontrib): Install the contrib postgresql packaging.
2119
* [`postgresql::server::plperl`](#postgresqlserverplperl): This class installs the PL/Perl procedural language for postgresql.
@@ -26,6 +24,8 @@ _Private Classes_
2624

2725
* `postgresql::params`:
2826
* `postgresql::repo`:
27+
* `postgresql::repo::apt_postgresql_org`:
28+
* `postgresql::repo::yum_postgresql_org`:
2929
* `postgresql::server::config`:
3030
* `postgresql::server::initdb`:
3131
* `postgresql::server::install`:
@@ -38,7 +38,7 @@ _Private Classes_
3838
* [`postgresql::server::config_entry`](#postgresqlserverconfig_entry): Manage a postgresql.conf entry.
3939
* [`postgresql::server::database`](#postgresqlserverdatabase): Define for creating a database.
4040
* [`postgresql::server::database_grant`](#postgresqlserverdatabase_grant): Manage a database grant.
41-
* [`postgresql::server::db`](#postgresqlserverdb): @ summary Define for conveniently creating a role, database and assigning the correctpermissions.
41+
* [`postgresql::server::db`](#postgresqlserverdb): Define for conveniently creating a role, database and assigning the correctpermissions.
4242
* [`postgresql::server::extension`](#postgresqlserverextension): Activate an extension on a postgresql database.
4343
* [`postgresql::server::grant`](#postgresqlservergrant): Define for granting permissions to roles.
4444
* [`postgresql::server::grant_role`](#postgresqlservergrant_role): Define for granting membership to a role.
@@ -55,15 +55,15 @@ _Private Classes_
5555
**Resource types**
5656

5757
* [`postgresql_conf`](#postgresql_conf): This type allows puppet to manage postgresql.conf parameters.
58-
* [`postgresql_conn_validator`](#postgresql_conn_validator): Verify that a connection can be successfully established between a node and the PostgreSQL server. Its primary use is as a precondition to p
58+
* [`postgresql_conn_validator`](#postgresql_conn_validator): Verify if a connection can be successfully established
5959
* [`postgresql_psql`](#postgresql_psql): An arbitrary tag for your own reference; the name of the message.
60-
* [`postgresql_replication_slot`](#postgresql_replication_slot): Manages Postgresql replication slots. This type allows to create and destroy replication slots to register warm standby replication on a Pos
60+
* [`postgresql_replication_slot`](#postgresql_replication_slot): Manages Postgresql replication slots.
6161

6262
**Functions**
6363

6464
* [`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
65-
* [`postgresql_escape`](#postgresql_escape):
66-
* [`postgresql_password`](#postgresql_password):
65+
* [`postgresql_escape`](#postgresql_escape): This function safely escapes a string using a consistent random tag
66+
* [`postgresql_password`](#postgresql_password): This function returns the postgresql password hash from the clear text username / password
6767

6868
**Tasks**
6969

@@ -85,7 +85,7 @@ The following parameters are available in the `postgresql::client` class.
8585

8686
Data type: `Enum['file', 'absent']`
8787

88-
Enum['file','absent'].
88+
Ensure the connection validation script is present
8989

9090
Default value: 'file'
9191

@@ -101,15 +101,15 @@ Default value: $postgresql::params::validcon_script_path
101101

102102
Data type: `String[1]`
103103

104-
String. Sets the name of the PostgreSQL client package.
104+
Sets the name of the PostgreSQL client package.
105105

106106
Default value: $postgresql::params::client_package_name
107107

108108
##### `package_ensure`
109109

110110
Data type: `String[1]`
111111

112-
Enum['present','absent'].
112+
Ensure the client package is installed
113113

114114
Default value: 'present'
115115

@@ -513,23 +513,23 @@ The following parameters are available in the `postgresql::lib::devel` class.
513513

514514
Data type: `String`
515515

516-
String.
516+
Override devel package name
517517

518518
Default value: $postgresql::params::devel_package_name
519519

520520
##### `package_ensure`
521521

522522
Data type: `String[1]`
523523

524-
String. Defaults to 'present'.
524+
Ensure the development libraries are installed
525525

526526
Default value: 'present'
527527

528528
##### `link_pg_config`
529529

530530
Data type: `Boolean`
531531

532-
Boolean. If the bin directory used by the PostgreSQL page is not /usr/bin or /usr/local/bin, symlinks pg_config from the package's bin dir into usr/bin (not applicable to Debian systems). Set to false to disable this behavior.
532+
If the bin directory used by the PostgreSQL page is not /usr/bin or /usr/local/bin, symlinks pg_config from the package's bin dir into usr/bin (not applicable to Debian systems). Set to false to disable this behavior.
533533

534534
Default value: $postgresql::params::link_pg_config
535535

@@ -547,15 +547,15 @@ The following parameters are available in the `postgresql::lib::docs` class.
547547

548548
Data type: `String`
549549

550-
String. Specifies the name of the PostgreSQL docs package.
550+
Specifies the name of the PostgreSQL docs package.
551551

552552
Default value: $postgresql::params::docs_package_name
553553

554554
##### `package_ensure`
555555

556556
Data type: `String[1]`
557557

558-
Enum['present','absent']. Whether the PostgreSQL docs package resource should be present.
558+
Whether the PostgreSQL docs package resource should be present.
559559

560560
Default value: 'present'
561561

@@ -573,15 +573,15 @@ The following parameters are available in the `postgresql::lib::java` class.
573573

574574
Data type: `String`
575575

576-
String. Specifies the name of the PostgreSQL java package.
576+
Specifies the name of the PostgreSQL java package.
577577

578578
Default value: $postgresql::params::java_package_name
579579

580580
##### `package_ensure`
581581

582582
Data type: `String[1]`
583583

584-
Enum['present','absent']. Specifies whether the package is present.
584+
Specifies whether the package is present.
585585

586586
Default value: 'present'
587587

@@ -597,15 +597,15 @@ The following parameters are available in the `postgresql::lib::perl` class.
597597

598598
Data type: `String`
599599

600-
String. Specifies the name of the PostgreSQL perl package to install.
600+
Specifies the name of the PostgreSQL perl package to install.
601601

602602
Default value: $postgresql::params::perl_package_name
603603

604604
##### `package_ensure`
605605

606606
Data type: `String[1]`
607607

608-
Enum['present','absent'].
608+
Ensure the perl libs for postgresql are installed.
609609

610610
Default value: 'present'
611611

@@ -621,26 +621,18 @@ The following parameters are available in the `postgresql::lib::python` class.
621621

622622
Data type: `String[1]`
623623

624-
String. The name of the PostgreSQL Python package.
624+
The name of the PostgreSQL Python package.
625625

626626
Default value: $postgresql::params::python_package_name
627627

628628
##### `package_ensure`
629629

630630
Data type: `String[1]`
631631

632-
Enum['present','absent']
632+
Ensure the python libs for postgresql are installed.
633633

634634
Default value: 'present'
635635

636-
### postgresql::repo::apt_postgresql_org
637-
638-
PRIVATE CLASS: do not use directly
639-
640-
### postgresql::repo::yum_postgresql_org
641-
642-
PRIVATE CLASS: do not use directly
643-
644636
### postgresql::server
645637

646638
This installs a PostgreSQL server
@@ -693,15 +685,15 @@ Default value: $postgresql::params::plpython_package_name
693685

694686
Data type: `Any`
695687

696-
688+
Ensure service is installed
697689

698690
Default value: $postgresql::params::service_ensure
699691

700692
##### `service_enable`
701693

702694
Data type: `Any`
703695

704-
696+
Enable the PostgreSQL service
705697

706698
Default value: $postgresql::params::service_enable
707699

@@ -773,7 +765,7 @@ Default value: $postgresql::globals::default_connect_settings
773765

774766
Data type: `Any`
775767

776-
768+
Address list on which the PostgreSQL service will listen
777769

778770
Default value: $postgresql::params::listen_addresses
779771

@@ -873,39 +865,39 @@ Default value: $postgresql::params::postgresql_conf_path
873865

874866
Data type: `Any`
875867

876-
868+
Specifies the path to your recovery.conf file.
877869

878870
Default value: $postgresql::params::recovery_conf_path
879871

880872
##### `datadir`
881873

882874
Data type: `Any`
883875

884-
876+
PostgreSQL data directory
885877

886878
Default value: $postgresql::params::datadir
887879

888880
##### `xlogdir`
889881

890882
Data type: `Any`
891883

892-
884+
PostgreSQL xlog directory
893885

894886
Default value: $postgresql::params::xlogdir
895887

896888
##### `logdir`
897889

898890
Data type: `Any`
899891

900-
892+
PostgreSQL log directory
901893

902894
Default value: $postgresql::params::logdir
903895

904896
##### `log_line_prefix`
905897

906898
Data type: `Any`
907899

908-
900+
PostgreSQL log line prefix
909901

910902
Default value: $postgresql::params::log_line_prefix
911903

@@ -970,7 +962,7 @@ Default value: $postgresql::params::data_checksums
970962

971963
Data type: `Any`
972964

973-
965+
Set timezone for the PostgreSQL instance
974966

975967
Default value: $postgresql::params::timezone
976968

@@ -1002,7 +994,7 @@ Default value: $postgresql::params::manage_recovery_conf
1002994

1003995
Data type: `Any`
1004996

1005-
997+
Working directory for the PostgreSQL module
1006998

1007999
Default value: $postgresql::params::module_workdir
10081000

@@ -1034,7 +1026,7 @@ Default value: {}
10341026

10351027
Data type: `Any`
10361028

1037-
1029+
Sets PostgreSQL version
10381030

10391031
Default value: `undef`
10401032

@@ -1050,15 +1042,15 @@ The following parameters are available in the `postgresql::server::contrib` clas
10501042

10511043
Data type: `String`
10521044

1053-
String. The name of the PostgreSQL contrib package.
1045+
The name of the PostgreSQL contrib package.
10541046

10551047
Default value: $postgresql::params::contrib_package_name
10561048

10571049
##### `package_ensure`
10581050

10591051
Data type: `String[1]`
10601052

1061-
Enum['present','absent'].
1053+
Ensure the contrib package is installed.
10621054

10631055
Default value: 'present'
10641056

@@ -1098,7 +1090,7 @@ The following parameters are available in the `postgresql::server::plpython` cla
10981090

10991091
Data type: `Any`
11001092

1101-
Enum['present','absent']. Specifies whether the package is present.
1093+
Specifies whether the package is present.
11021094

11031095
Default value: 'present'
11041096

@@ -1164,7 +1156,7 @@ Default value: `undef`
11641156

11651157
Data type: `Any`
11661158

1167-
1159+
Path for postgresql.conf
11681160

11691161
Default value: `false`
11701162

@@ -1308,7 +1300,7 @@ Default value: `undef`
13081300

13091301
### postgresql::server::db
13101302

1311-
@ summary Define for conveniently creating a role, database and assigning the correctpermissions.
1303+
Define for conveniently creating a role, database and assigning the correctpermissions.
13121304

13131305
#### Parameters
13141306

@@ -1562,15 +1554,15 @@ Default value: $postgresql::server::port
15621554

15631555
Data type: `Boolean`
15641556

1565-
1557+
Create grant only if doesn't exist
15661558

15671559
Default value: `false`
15681560

15691561
##### `connect_settings`
15701562

15711563
Data type: `Hash`
15721564

1573-
1565+
Specifies a hash of environment variables used when connecting to a remote server.
15741566

15751567
Default value: $postgresql::server::default_connect_settings
15761568

@@ -2218,7 +2210,7 @@ Default value: `undef`
22182210

22192211
Data type: `Any`
22202212

2221-
2213+
Create grant only if it doesn't exist.
22222214

22232215
Default value: `false`
22242216

@@ -2560,8 +2552,6 @@ Default value: `false`
25602552

25612553
### postgresql_replication_slot
25622554

2563-
Manages Postgresql replication slots.
2564-
25652555
This type allows to create and destroy replication slots
25662556
to register warm standby replication on a Postgresql
25672557
master server.
@@ -2630,23 +2620,23 @@ Returns: `Any` This function accepts an array of strings that are pg_hba.conf ru
26302620

26312621
Type: Ruby 3.x API
26322622

2633-
The postgresql_escape function.
2623+
This function safely escapes a string using a consistent random tag
26342624

26352625
#### `postgresql_escape()`
26362626

2637-
The postgresql_escape function.
2627+
This function safely escapes a string using a consistent random tag
26382628

26392629
Returns: `Any` Safely escapes a string using $$ using a random tag which should be consistent
26402630

26412631
### postgresql_password
26422632

26432633
Type: Ruby 3.x API
26442634

2645-
The postgresql_password function.
2635+
This function returns the postgresql password hash from the clear text username / password
26462636

26472637
#### `postgresql_password()`
26482638

2649-
The postgresql_password function.
2639+
This function returns the postgresql password hash from the clear text username / password
26502640

26512641
Returns: `Any` Returns the postgresql password hash from the clear text username / password.
26522642

lib/puppet/parser/functions/postgresql_escape.rb

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# postgresql_escape.rb
44
module Puppet::Parser::Functions
55
newfunction(:postgresql_escape, type: :rvalue, doc: <<-EOS
6+
This function safely escapes a string using a consistent random tag
67
@return Safely escapes a string using $$ using a random tag which should be consistent
78
EOS
89
) do |args|

0 commit comments

Comments
 (0)