Skip to content

Commit 798f066

Browse files
Update comments & remove backup param
1 parent ab589fa commit 798f066

File tree

7 files changed

+39
-11
lines changed

7 files changed

+39
-11
lines changed

manifests/collect.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Create systemd units for repacking a given database type
2+
# @param database_type [String] The database to repack, uses titles from pg_repack.pp
3+
# @param command [String] defined in pg_repack.pp
4+
# @param disable_maintenance [Boolean] to disable maintenance mode (Default: false)
5+
# @param on_cal [String] values can be found in pg_repack.pp
6+
#
27
define pe_databases::collect (
38
String $database_type = $title,
49
String $command = undef,

manifests/init.pp

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
# Tuning, maintenance for PE PostgreSQL.
2-
#
3-
# @summary
4-
# Tuning, maintenance for PE PostgreSQL.
5-
1+
# @summary Tuning, maintenance for PE PostgreSQL.
2+
#
3+
# @param disable_maintenance [Boolean] true or false (Default: false)
4+
# Disable or enable maintenance mode
5+
# @param manage_postgresql_settings [Boolean] true or false (Default: true)
6+
# Manage PostgreSQL settings
7+
# @param manage_table_settings [Boolean] true or false (Default: false)
8+
# Manage table settings
9+
# @param install_dir [String] Directory to install module into (Default: "/opt/puppetlabs/pe_databases")
10+
# @param scripts_dir [String] Directory to install scripts into (Default: "${install_dir}/scripts")
611
class pe_databases (
7-
Variant[Boolean,Undef] $manage_database_backups = undef,
812
# Manage the inclusion of the pg_repack class
913
Boolean $manage_database_maintenance = true,
1014
# Manage the state of the maintenance tasks, i.e. systemd services and timers

manifests/pg_repack.pp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
#
33
# @summary
44
# Provides systemd timers to pg_repack tables in the pe-puppetdb database
5-
5+
#
6+
# @param disable_maintenance [Boolean] true or false (Default: false)
7+
# Disable or enable maintenance mode
8+
# @param jobs [Integer] How many jobs to run in parallel
69
class pe_databases::pg_repack (
710
Boolean $disable_maintenance = false,
811
Integer $jobs = $facts['processors']['count'] / 4

manifests/postgresql_settings.pp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
#
33
# @summary
44
# Tune PostgreSQL settings
5-
5+
#
6+
# @param maintenance_work_mem [String] Increase to improve speed of speed of vacuuming and reindexing (Example "1GB")
7+
# @param work_mem [String] Allows PostgreSQL to do larger in-memory sorts (Default: "4MB")
8+
# @param autovacumn_work_mem [String] Similar to but for maintenance_work_mem autovacuum processes only (Example "256MB")
9+
# @param autovacuum_max_workers [Integer] Maximum number of autovacuum processes to run concurrently (Default: 3)
10+
#
611
class pe_databases::postgresql_settings (
712
# lint:ignore:140chars
813
Float[0,1] $autovacuum_vacuum_scale_factor = 0.08,

manifests/postgresql_settings/table_settings.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# @summary
44
# Tune PostgreSQL table settings
5-
5+
#
66
class pe_databases::postgresql_settings::table_settings (
77
# lint:ignore:140chars
88
Boolean $manage_reports_autovacuum_cost_delay = lookup('pe_databases::postgresql_settings::manage_reports_autovacuum_cost_delay', {'default_value' => true}),

manifests/set_puppetdb_table_autovacuum_cost_delay_zero.pp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#
33
# @summary
44
# Defined type for PostgreSQL autovacuum_cost_delay
5-
5+
#
6+
# @param table_name [String]
7+
# Name of the table
68
define pe_databases::set_puppetdb_table_autovacuum_cost_delay_zero (
79
String $table_name = $title,
810
) {

manifests/set_table_attribute.pp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22
#
33
# @summary
44
# Defined type for PostgreSQL table attributes
5-
5+
#
6+
# @param db [String]
7+
# Name of the database, this is pe-puppetdb for the uses of this module.
8+
# @param table_name [String]
9+
# Name of the table in the database.
10+
# @param table_attribute [String]
11+
# Set to the table attribute value.
12+
# @param table_attribute_value [String]
13+
# Value of setting for the table set in table_settings.pp
14+
#
615
define pe_databases::set_table_attribute (
716
String $db,
817
String $table_name,

0 commit comments

Comments
 (0)