Skip to content

Commit 5a94c12

Browse files
author
Daniel Carabas
committed
Update parameter descriptions
1 parent fedfdc5 commit 5a94c12

27 files changed

+478
-403
lines changed

REFERENCE.md

+228-201
Large diffs are not rendered by default.

manifests/client.pp

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# @summary Install client cli tool.
1+
# @summary Installs PostgreSQL client software. Set the following parameters if you have a custom version you would like to install.
2+
#
3+
# @note
4+
# Make sure to add any necessary yum or apt repositories if specifying a custom version.
25
#
36
# @param file_ensure
47
# Enum['file','absent'].
@@ -7,10 +10,10 @@
710
# Optional. Absolute path for the postgresql connection validation script.
811
#
912
# @param package_name
10-
# String. Client package name.
13+
# String. Sets the name of the PostgreSQL client package.
1114
#
12-
# @param package_ensure
13-
# String. Defaults to 'present'.
15+
# @param package_ensure
16+
# Enum['present','absent'].
1417
#
1518
#
1619
class postgresql::client (

manifests/globals.pp

+59-43
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,79 @@
11
# @summary Class for setting cross-class global overrides.
22
#
3-
# @param client_package_name
4-
# @param server_package_name
5-
# @param contrib_package_name
6-
# @param devel_package_name
7-
# @param java_package_name
8-
# @param docs_package_name
9-
# @param perl_package_name
10-
# @param plperl_package_name
11-
# @param plpython_package_name
12-
# @param python_package_name
13-
# @param postgis_package_name
14-
#
15-
# @param service_name
16-
# @param service_provider
17-
# @param service_status
18-
# @param default_database
3+
# @note
4+
# Most server-specific defaults should be overridden in the postgresql::server class.
5+
# This class should be used only if you are using a non-standard OS, or if you are changing elements that can only be changed here, such as version or manage_package_repo.
6+
#
7+
#
8+
# @param client_package_name Overrides the default PostgreSQL client package name.
9+
# @param server_package_name Overrides the default PostgreSQL server package name.
10+
# @param contrib_package_name Overrides the default PostgreSQL contrib package name.
11+
# @param devel_package_name Overrides the default PostgreSQL devel package name.
12+
# @param java_package_name Overrides the default PostgreSQL java package name.
13+
# @param docs_package_name Overrides the default PostgreSQL docs package name.
14+
# @param perl_package_name Overrides the default PostgreSQL Perl package name.
15+
# @param plperl_package_name Overrides the default PostgreSQL PL/Perl package name.
16+
# @param plpython_package_name Overrides the default PostgreSQL PL/Python package name.
17+
# @param python_package_name Overrides the default PostgreSQL Python package name.
18+
# @param postgis_package_name Overrides the default PostgreSQL PostGIS package name.
19+
#
20+
# @param service_name Overrides the default PostgreSQL service name.
21+
# @param service_provider Overrides the default PostgreSQL service provider.
22+
# @param service_status Overrides the default status check command for your PostgreSQL service.
23+
# @param default_database Specifies the name of the default database to connect with.
1924
#
2025
# @param validcon_script_path
2126
#
22-
# @param initdb_path
23-
# @param createdb_path
24-
# @param psql_path
25-
# @param pg_hba_conf_path
26-
# @param pg_ident_conf_path
27-
# @param postgresql_conf_path
28-
# @param recovery_conf_path
27+
# @param initdb_path Path to the initdb command.
28+
# @param createdb_path Deprecated. Path to the createdb command.
29+
# @param psql_path Sets the path to the psql command.
30+
# @param pg_hba_conf_path Specifies the path to your pg_hba.conf file.
31+
# @param pg_ident_conf_path Specifies the path to your pg_ident.conf file.
32+
# @param postgresql_conf_path Sets the path to your postgresql.conf file.
33+
# @param recovery_conf_path Path to your recovery.conf file.
2934
# @param default_connect_settings
3035
#
31-
# @param pg_hba_conf_defaults
36+
# @param pg_hba_conf_defaults Disables the defaults supplied with the module for pg_hba.conf if set to false. This is useful if you want to override the defaults. Be sure that your changes align with the rest of the module, as some access is required to perform some operations, such as basic psql operations.
37+
#
38+
# @param datadir Overrides the default PostgreSQL data directory for the target platform.
39+
#
40+
# @note Changing the datadir after installation causes the server to come to a full stop before making the change. For Red Hat systems, the data directory must be labeled appropriately for SELinux. On Ubuntu, you must explicitly set needs_initdb = true to allow Puppet to initialize the database in the new datadir (needs_initdb defaults to true on other systems).
41+
# @note Warning! If datadir is changed from the default, Puppet does not manage purging of the original data directory, which causes it to fail if the data directory is changed back to the original
42+
#
43+
# @param confdir Overrides the default PostgreSQL configuration directory for the target platform.
44+
# @param bindir Overrides the default PostgreSQL binaries directory for the target platform.
45+
# @param xlogdir Overrides the default PostgreSQL xlog directory.
46+
# @param logdir Overrides the default PostgreSQL log directory.
47+
# @param log_line_prefix Overrides the default PostgreSQL log prefix.
3248
#
33-
# @param datadir
34-
# @param confdir
35-
# @param bindir
36-
# @param xlogdir
37-
# @param logdir
38-
# @param log_line_prefix
49+
# @param user Overrides the default PostgreSQL super user and owner of PostgreSQL related files in the file system.
50+
# Default value: 'postgres'.
51+
# @param group Overrides the default postgres user group to be used for related files in the file system.
3952
#
40-
# @param user
41-
# @param group
53+
# @param version The version of PostgreSQL to install and manage.
54+
# @param postgis_version Defines the version of PostGIS to install, if you install PostGIS.
55+
# @param repo_proxy Sets the proxy option for the official PostgreSQL yum-repositories only. This is useful if your server is behind a corporate firewall and needs to use proxy servers for outside connectivity.
56+
# Debian is currently not supported.
4257
#
43-
# @param version
44-
# @param postgis_version
45-
# @param repo_proxy
46-
# @param repo_baseurl
58+
# @param repo_baseurl Sets the baseurl for the PostgreSQL repository. Useful if you host your own mirror of the repository.
4759
#
48-
# @param needs_initdb
60+
# @param needs_initdb Explicitly calls the initdb operation after the server package is installed and before the PostgreSQL service is started.
4961
#
50-
# @param encoding
51-
# @param locale
52-
# @param data_checksums
53-
# @param timezone
62+
# @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.
63+
# @param locale Sets the default database locale 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.
64+
# @note On Debian, you'll need to ensure that the 'locales-all' package is installed for full functionality of PostgreSQL.
65+
# @param data_checksums
66+
# Boolean. Use checksums on data pages to help detect corruption by the I/O system that would otherwise be silent.
67+
# 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.
68+
#
69+
# @param timezone Sets the default timezone of the postgresql server. The postgresql built-in default is taking the systems timezone information.
5470
#
5571
# @param manage_pg_hba_conf
5672
# @param manage_pg_ident_conf
5773
# @param manage_recovery_conf
5874
#
59-
# @param manage_package_repo
60-
# @param module_workdir
75+
# @param manage_package_repo Sets up official PostgreSQL repositories on your host if set to true.
76+
# @param module_workdir Specifies working directory under which the psql command should be executed. May need to specify if '/tmp' is on volume mounted with noexec option.
6177
#
6278
#
6379
class postgresql::globals (

manifests/lib/devel.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# @param package_ensure
66
# String. Defaults to 'present'.
77
# @param link_pg_config
8-
# Boolean.
8+
# 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.
99
#
1010
#
1111
class postgresql::lib::devel(

manifests/lib/docs.pp

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
# @summary This class installs the postgresql-docs
1+
# @summary Installs PostgreSQL bindings for Postgres-Docs. Set the following parameters if you have a custom version you would like to install.
2+
#
3+
# @note
4+
# Make sure to add any necessary yum or apt repositories if specifying a custom version.
25
#
36
# @param package_name
4-
# String.
7+
# String. Specifies the name of the PostgreSQL docs package.
58
# @param package_ensure
6-
# String. Defaults to 'present'.
9+
# Enum['present','absent']. Whether the PostgreSQL docs package resource should be present.
710
#
811
#
912
class postgresql::lib::docs (

manifests/lib/java.pp

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# @summary This class installs the postgresql jdbc connector.
22
#
3+
# @note
4+
# Make sure to add any necessary yum or apt repositories if specifying a custom version.
5+
#
36
# @param package_name
4-
# String.
7+
# String. Specifies the name of the PostgreSQL java package.
58
# @param package_ensure
6-
# String. Defaults to 'present'.
9+
# Enum['present','absent']. Specifies whether the package is present.
710
#
811
class postgresql::lib::java (
912
String $package_name = $postgresql::params::java_package_name,

manifests/lib/perl.pp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# @summary This class installs the perl libs for postgresql.
22
#
33
# @param package_name
4-
# String.
4+
# String. Specifies the name of the PostgreSQL perl package to install.
55
# @param package_ensure
6-
# String. Defaults to 'present'.
6+
# Enum['present','absent'].
77
#
88
class postgresql::lib::perl(
99
String $package_name = $postgresql::params::perl_package_name,

manifests/lib/python.pp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# @summary This class installs the python libs for postgresql.
22
#
33
# @param package_name
4-
# String.
4+
# String. The name of the PostgreSQL Python package.
55
# @param package_ensure
6-
# String. Defaults to 'present'.
6+
# Enum['present','absent']
77
#
88
class postgresql::lib::python(
99
String[1] $package_name = $postgresql::params::python_package_name,

manifests/server.pp

+48-38
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,43 @@
11
# @summary This installs a PostgreSQL server
22
#
3-
# @param postgres_password
4-
# @param package_name
5-
# @param package_ensure
3+
# @param postgres_password Sets the password for the postgres user to your specified value. By default, this setting uses the superuser account in the Postgres database, with a user called postgres and no password.
4+
# @param package_name Specifies the name of the package to use for installing the server software.
5+
# @param package_ensure Passes a value through to the package resource when creating the server instance.
66
#
7-
# @param plperl_package_name
8-
# @param plpython_package_name
7+
# @param plperl_package_name Sets the default package name for the PL/Perl extension.
8+
# @param plpython_package_name Sets the default package name for the PL/Python extension.
99
#
1010
# @param service_ensure
1111
# @param service_enable
12-
# @param service_manage
13-
# @param service_name
14-
# @param service_restart_on_change
15-
# @param service_provider
16-
# @param service_reload
17-
# @param service_status
18-
# @param default_database
19-
# @param default_connect_settings
12+
# @param service_manage Defines whether or not Puppet should manage the service.
13+
# @param service_name Overrides the default PostgreSQL service name.
14+
# @param service_restart_on_change Overrides the default behavior to restart your PostgreSQL service when a config entry has been changed that requires a service restart to become active.
15+
# @param service_provider Overrides the default PostgreSQL service provider.
16+
# @param service_reload Overrides the default reload command for your PostgreSQL service.
17+
# @param service_status Overrides the default status check command for your PostgreSQL service.
18+
# @param default_database Specifies the name of the default database to connect with. On most systems this is 'postgres'.
19+
# @param default_connect_settings Specifies a hash of environment variables used when connecting to a remote server. Becomes the default for other defined types, such as postgresql::server::role.
20+
#
2021
# @param listen_addresses
21-
# @param port
22-
# @param ip_mask_deny_postgres_user
23-
# @param ip_mask_allow_all_users
24-
# @param ipv4acls
25-
# @param ipv6acls
26-
#
27-
# @param initdb_path
28-
# @param createdb_path
29-
# @param psql_path
30-
# @param pg_hba_conf_path
31-
# @param pg_ident_conf_path
32-
# @param postgresql_conf_path
22+
# @param port Specifies the port for the PostgreSQL server to listen on. Note: The same port number is used for all IP addresses the server listens on. Also, for Red Hat systems and early Debian systems, changing the port causes the server to come to a full stop before being able to make the change.
23+
# Default value: 5432. Meaning the Postgres server listens on TCP port 5432.
24+
#
25+
# @param ip_mask_deny_postgres_user Specifies the IP mask from which remote connections should be denied for the postgres superuser.
26+
# Default value: '0.0.0.0/0', which denies any remote connection.
27+
#
28+
# @param ip_mask_allow_all_users Overrides PostgreSQL defaults for remote connections. By default, PostgreSQL does not allow database user accounts to connect via TCP from remote machines. If you'd like to allow this, you can override this setting.
29+
# Set to '0.0.0.0/0' to allow database users to connect from any remote machine, or '192.168.0.0/1' to allow connections from any machine on your local '192.168' subnet.
30+
# Default value: '127.0.0.1/32'.
31+
#
32+
# @param ipv4acls Lists strings for access control for connection method, users, databases, IPv4 addresses;
33+
# @param ipv6acls Lists strings for access control for connection method, users, databases, IPv6 addresses.
34+
#
35+
# @param initdb_path Specifies the path to the initdb command.
36+
# @param createdb_path Deprecated. Specifies the path to the createdb command.
37+
# @param psql_path Specifies the path to the psql command.
38+
# @param pg_hba_conf_path Specifies the path to your pg_hba.conf file.
39+
# @param pg_ident_conf_path Specifies the path to your pg_ident.conf file.
40+
# @param postgresql_conf_path Specifies the path to your postgresql.conf file.
3341
# @param recovery_conf_path
3442
#
3543
# @param datadir
@@ -38,26 +46,28 @@
3846
#
3947
# @param log_line_prefix
4048
#
41-
# @param pg_hba_conf_defaults
49+
# @param pg_hba_conf_defaults If false, disables the defaults supplied with the module for pg_hba.conf. This is useful if you disagree with the defaults and wish to override them yourself. Be sure that your changes of course align with the rest of the module, as some access is required to perform basic psql operations for example.
50+
#
51+
# @param user Overrides the default PostgreSQL super user and owner of PostgreSQL related files in the file system.
52+
# @param group Overrides the default postgres user group to be used for related files in the file system.
4253
#
43-
# @param user
44-
# @param group
54+
# @param needs_initdb Explicitly calls the initdb operation after server package is installed, and before the PostgreSQL service is started.
4555
#
46-
# @param needs_initdb
56+
# @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.
57+
# @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.
58+
# @param data_checksums Boolean. Use checksums on data pages to help detect corruption by the I/O system that would otherwise be silent.
59+
# 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.
4760
#
48-
# @param encoding
49-
# @param locale
50-
# @param data_checksums
5161
# @param timezone
5262
#
53-
# @param manage_pg_hba_conf
54-
# @param manage_pg_ident_conf
55-
# @param manage_recovery_conf
63+
# @param manage_pg_hba_conf Boolean. Whether to manage the pg_hba.conf.
64+
# @param manage_pg_ident_conf Boolean. Overwrites the pg_ident.conf file.
65+
# @param manage_recovery_conf Boolean. Specifies whether or not manage the recovery.conf.
5666
# @param module_workdir
5767
#
58-
# @param roles
59-
# @param config_entries
60-
# @param pg_hba_rules
68+
# @param roles Specifies a hash from which to generate postgresql::server::role resources.
69+
# @param config_entries Specifies a hash from which to generate postgresql::server::config_entry resources.
70+
# @param pg_hba_rules Specifies a hash from which to generate postgresql::server::pg_hba_rule resources.
6171
#
6272
# @param version
6373
#

manifests/server/config_entry.pp

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# @summary Manage a postgresql.conf entry.
22
#
3-
# @param ensure
4-
# @param value
3+
# @param ensure Removes an entry if set to 'absent'.
4+
# @param value Defines the value for the setting.
55
# @param path
6-
# Boolean. Defaults to false.
76
#
87
define postgresql::server::config_entry (
98
$ensure = 'present',

manifests/server/contrib.pp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# @summary Install the contrib postgresql packaging.
22
#
33
# @param package_name
4-
# String.
4+
# String. The name of the PostgreSQL contrib package.
55
# @param package_ensure
6-
# String. Defaults to 'present'.
6+
# Enum['present','absent']. Defaults to 'present'.
77
#
88
#
99
class postgresql::server::contrib (

manifests/server/database.pp

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# @summary Define for creating a database.
22
#
33
# @param comment
4-
# @param dbname
5-
# @param owner
6-
# @param tablespace
7-
# @param template
8-
# @param encoding
9-
# @param locale
10-
# @param istemplate
4+
# @param dbname Sets the name of the database.
5+
# @param owner Sets name of the database owner.
6+
# @param tablespace Sets tablespace for where to create this database.
7+
# @param template Specifies the name of the template database from which to build this database. Default value: 'template0'.
8+
# @param encoding Overrides the character set during creation of the database.
9+
# @param locale Overrides the locale during creation of the database.
10+
# @param istemplate Defines the database as a template if set to true.
1111
# @param connect_settings
1212
#
1313
define postgresql::server::database(

manifests/server/database_grant.pp

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# @summary Manage a database grant.
22
#
3-
# @param privilege
4-
# @param db
5-
# @param role
6-
# @param ensure
7-
# @param psql_db
8-
# @param psql_user
9-
# @param connect_settings
3+
# @param privilege Specifies comma-separated list of privileges to grant. Valid options: 'ALL', 'CREATE', 'CONNECT', 'TEMPORARY', 'TEMP'.
4+
# @param db Specifies the database to which you are granting access.
5+
# @param role Specifies the role or user whom you are granting access to.
6+
# @param ensure Specifies whether to grant or revoke the privilege. Revoke or 'absent' works only in PostgreSQL version 9.1.24 or later.
7+
# @param psql_db Defines the database to execute the grant against. This should not ordinarily be changed from the default
8+
# @param psql_user Specifies the OS user for running psql. Default value: The default user for the module, usually 'postgres'.
9+
# @param connect_settings Specifies a hash of environment variables used when connecting to a remote server.
1010
#
1111
define postgresql::server::database_grant(
1212
$privilege,

0 commit comments

Comments
 (0)