Skip to content

Commit 153cd6a

Browse files
author
Daniel Carabas
committed
Puppet Strings
1 parent 791754f commit 153cd6a

37 files changed

+3077
-58
lines changed

REFERENCE.md

+2,668
Large diffs are not rendered by default.

manifests/client.pp

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
# Install client cli tool. See README.md for more details.
1+
# @summary Install client cli tool.
2+
#
3+
# @param file_ensure
4+
# Enum['file','absent'].
5+
#
6+
# @param validcon_script_path
7+
# Optional. Absolute path for the postgresql connection validation script.
8+
#
9+
# @param package_name
10+
# String. Client package name.
11+
#
12+
# @param package_ensure
13+
# String. Defaults to 'present'.
14+
#
15+
#
216
class postgresql::client (
317
Enum['file', 'absent'] $file_ensure = 'file',
418
Stdlib::Absolutepath $validcon_script_path = $postgresql::params::validcon_script_path,

manifests/globals.pp

+62-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,65 @@
1-
# Class for setting cross-class global overrides. See README.md for more
2-
# details.
1+
# @summary Class for setting cross-class global overrides.
2+
#
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
19+
#
20+
# @param validcon_script_path
21+
#
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
29+
# @param default_connect_settings
30+
#
31+
# @param pg_hba_conf_defaults
32+
#
33+
# @param datadir
34+
# @param confdir
35+
# @param bindir
36+
# @param xlogdir
37+
# @param logdir
38+
# @param log_line_prefix
39+
#
40+
# @param user
41+
# @param group
42+
#
43+
# @param version
44+
# @param postgis_version
45+
# @param repo_proxy
46+
# @param repo_baseurl
47+
#
48+
# @param needs_initdb
49+
#
50+
# @param encoding
51+
# @param locale
52+
# @param data_checksums
53+
# @param timezone
54+
#
55+
# @param manage_pg_hba_conf
56+
# @param manage_pg_ident_conf
57+
# @param manage_recovery_conf
58+
#
59+
# @param manage_package_repo
60+
# @param module_workdir
61+
#
62+
#
363
class postgresql::globals (
464
$client_package_name = undef,
565
$server_package_name = undef,

manifests/lib/devel.pp

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
# This class installs postgresql development libraries. See README.md for more
2-
# details.
1+
# @summary This class installs postgresql development libraries.
2+
#
3+
# @param package_name
4+
# String.
5+
# @param package_ensure
6+
# String. Defaults to 'present'.
7+
# @param link_pg_config
8+
# Boolean.
9+
#
10+
#
311
class postgresql::lib::devel(
412
String $package_name = $postgresql::params::devel_package_name,
513
String[1] $package_ensure = 'present',

manifests/lib/docs.pp

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
# This class installs the postgresql-docs See README.md for more
2-
# details.
1+
# @summary This class installs the postgresql-docs
2+
#
3+
# @param package_name
4+
# String.
5+
# @param package_ensure
6+
# String. Defaults to 'present'.
7+
#
8+
#
39
class postgresql::lib::docs (
410
String $package_name = $postgresql::params::docs_package_name,
511
String[1] $package_ensure = 'present',

manifests/lib/java.pp

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
# This class installs the postgresql jdbc connector. See README.md for more
2-
# details.
1+
# @summary This class installs the postgresql jdbc connector.
2+
#
3+
# @param package_name
4+
# String.
5+
# @param package_ensure
6+
# String. Defaults to 'present'.
7+
#
38
class postgresql::lib::java (
49
String $package_name = $postgresql::params::java_package_name,
510
String[1] $package_ensure = 'present'

manifests/lib/perl.pp

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
# This class installs the perl libs for postgresql. See README.md for more
2-
# details.
1+
# @summary This class installs the perl libs for postgresql.
2+
#
3+
# @param package_name
4+
# String.
5+
# @param package_ensure
6+
# String. Defaults to 'present'.
7+
#
38
class postgresql::lib::perl(
49
String $package_name = $postgresql::params::perl_package_name,
510
String[1] $package_ensure = 'present'

manifests/lib/python.pp

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
# This class installs the python libs for postgresql. See README.md for more
2-
# details.
1+
# @summary This class installs the python libs for postgresql.
2+
#
3+
# @param package_name
4+
# String.
5+
# @param package_ensure
6+
# String. Defaults to 'present'.
7+
#
38
class postgresql::lib::python(
49
String[1] $package_name = $postgresql::params::python_package_name,
510
String[1] $package_ensure = 'present'

manifests/params.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PRIVATE CLASS: do not use directly
1+
# @api private
22
class postgresql::params inherits postgresql::globals {
33
$version = $postgresql::globals::globals_version
44
$postgis_version = $postgresql::globals::globals_postgis_version

manifests/repo.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PRIVATE CLASS: do not use directly
1+
# @api private
22
class postgresql::repo (
33
$version = undef,
44
$proxy = undef,

manifests/server.pp

+64-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,67 @@
1-
# This installs a PostgreSQL server. See README.md for more details.
1+
# @summary This installs a PostgreSQL server
2+
#
3+
# @param postgres_password
4+
# @param package_name
5+
# @param package_ensure
6+
#
7+
# @param plperl_package_name
8+
# @param plpython_package_name
9+
#
10+
# @param service_ensure
11+
# @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
20+
# @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
33+
# @param recovery_conf_path
34+
#
35+
# @param datadir
36+
# @param xlogdir
37+
# @param logdir
38+
#
39+
# @param log_line_prefix
40+
#
41+
# @param pg_hba_conf_defaults
42+
#
43+
# @param user
44+
# @param group
45+
#
46+
# @param needs_initdb
47+
#
48+
# @param encoding
49+
# @param locale
50+
# @param data_checksums
51+
# @param timezone
52+
#
53+
# @param manage_pg_hba_conf
54+
# @param manage_pg_ident_conf
55+
# @param manage_recovery_conf
56+
# @param module_workdir
57+
#
58+
# @param roles
59+
# @param config_entries
60+
# @param pg_hba_rules
61+
#
62+
# @param version
63+
#
64+
#
265
class postgresql::server (
366
$postgres_password = undef,
467

manifests/server/config.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PRIVATE CLASS: do not call directly
1+
# @api private
22
class postgresql::server::config {
33
$ip_mask_deny_postgres_user = $postgresql::server::ip_mask_deny_postgres_user
44
$ip_mask_allow_all_users = $postgresql::server::ip_mask_allow_all_users

manifests/server/config_entry.pp

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# Manage a postgresql.conf entry. See README.md for more details.
1+
# @summary Manage a postgresql.conf entry.
2+
#
3+
# @param ensure
4+
# @param value
5+
# @param path
6+
# Boolean. Defaults to false.
7+
#
28
define postgresql::server::config_entry (
39
$ensure = 'present',
410
$value = undef,

manifests/server/contrib.pp

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
# Install the contrib postgresql packaging. See README.md for more details.
1+
# @summary Install the contrib postgresql packaging.
2+
#
3+
# @param package_name
4+
# String.
5+
# @param package_ensure
6+
# String. Defaults to 'present'.
7+
#
8+
#
29
class postgresql::server::contrib (
310
String $package_name = $postgresql::params::contrib_package_name,
411
String[1] $package_ensure = 'present'

manifests/server/database.pp

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
# Define for creating a database. See README.md for more details.
1+
# @summary Define for creating a database.
2+
#
3+
# @param comment
4+
# @param dbname
5+
# @param owner
6+
# @param tablespace
7+
# @param template
8+
# @param encoding
9+
# @param locale
10+
# @param istemplate
11+
# @param connect_settings
12+
#
213
define postgresql::server::database(
314
$comment = undef,
415
$dbname = $title,

manifests/server/database_grant.pp

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
# Manage a database grant. See README.md for more details.
1+
# @summary Manage a database grant.
2+
#
3+
# @param privilege
4+
# @param db
5+
# @param role
6+
# @param ensure
7+
# @param psql_db
8+
# @param psql_user
9+
# @param connect_settings
10+
#
211
define postgresql::server::database_grant(
312
$privilege,
413
$db,

manifests/server/db.pp

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1-
# Define for conveniently creating a role, database and assigning the correct
2-
# permissions. See README.md for more details.
1+
# @ summary Define for conveniently creating a role, database and assigning the correctpermissions.
2+
#
3+
# @param user
4+
# @param password
5+
# @param comment
6+
# @param dbname
7+
# @param encoding
8+
# @param locale
9+
# @param grant
10+
# @param tablespace
11+
# @param template
12+
# @param istemplate
13+
# @param owner
14+
#
15+
#
316
define postgresql::server::db (
417
$user,
518
$password,

manifests/server/extension.pp

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
# Activate an extension on a postgresql database
1+
# @summary Activate an extension on a postgresql database.
2+
#
3+
# @param database
4+
# @param extension
5+
# @param schema
6+
# @param version
7+
# @param ensure
8+
# @param package_name
9+
# @param package_ensure
10+
# @param connect_settings
11+
#
212
define postgresql::server::extension (
313
$database,
414
$extension = $name,

manifests/server/grant.pp

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
# Define for granting permissions to roles. See README.md for more details.
1+
# @summary Define for granting permissions to roles.
2+
#
3+
# @param role
4+
# @param db
5+
# @param privilege
6+
# @param object_type
7+
# @param object_name
8+
# @param psql_db
9+
# @param psql_user
10+
# @param port
11+
# @param onlyif_exists
12+
# @param connect_settings
13+
# @param ensure
14+
#
215
define postgresql::server::grant (
316
String $role,
417
String $db,

manifests/server/grant_role.pp

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
# Define for granting membership to a role. See README.md for more information
1+
# @summary Define for granting membership to a role.
2+
#
3+
# @param group
4+
# @param role
5+
# @param ensure
6+
# @param psql_db
7+
# @param psql_user
8+
# @param port
9+
# @param connect_settings
10+
#
211
define postgresql::server::grant_role (
312
String[1] $group,
413
String[1] $role = $name,

manifests/server/initdb.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PRIVATE CLASS: do not call directly
1+
# @api private
22
class postgresql::server::initdb {
33
$needs_initdb = $postgresql::server::needs_initdb
44
$initdb_path = $postgresql::server::initdb_path

manifests/server/install.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PRIVATE CLASS: do not call directly
1+
# @api private
22
class postgresql::server::install {
33
$package_ensure = $postgresql::server::package_ensure
44
$package_name = $postgresql::server::package_name

manifests/server/passwd.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PRIVATE CLASS: do not call directly
1+
# @api private
22
class postgresql::server::passwd {
33
$postgres_password = $postgresql::server::postgres_password
44
$user = $postgresql::server::user

0 commit comments

Comments
 (0)