Skip to content

Commit 72e2e21

Browse files
authored
Merge pull request #104 from elainemccloskey/SUP-3409
(SUP-3409) Update puppet strings comments
2 parents 0b9b215 + 2028739 commit 72e2e21

File tree

8 files changed

+49
-16
lines changed

8 files changed

+49
-16
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 & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
# Tuning, maintenance, and backups for PE PostgreSQL.
2-
#
3-
# @summary Tuning, maintenance, and backups for PE PostgreSQL.
4-
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")
511
class pe_databases (
6-
Variant[Boolean,Undef] $manage_database_backups = undef,
712
# Manage the inclusion of the pg_repack class
813
Boolean $manage_database_maintenance = true,
914
# Manage the state of the maintenance tasks, i.e. systemd services and timers

manifests/pg_repack.pp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Maintenance pg_repack
22
#
3-
# @summary Maintenance pg_repack
4-
3+
# @summary
4+
# Provides systemd timers to pg_repack tables in the pe-puppetdb database
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
59
class pe_databases::pg_repack (
610
Boolean $disable_maintenance = false,
711
Integer $jobs = $facts['processors']['count'] / 4

manifests/postgresql_settings.pp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
# Tune PostgreSQL
22
#
3-
# @summary Tune PostgreSQL
4-
3+
# @summary
4+
# Tune PostgreSQL settings
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+
#
511
class pe_databases::postgresql_settings (
612
# lint:ignore:140chars
713
Float[0,1] $autovacuum_vacuum_scale_factor = 0.08,

manifests/postgresql_settings/table_settings.pp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Tune PostgreSQL table settings
22
#
3-
# @summary Tune PostgreSQL table settings
4-
3+
# @summary
4+
# Tune PostgreSQL table settings
5+
#
56
class pe_databases::postgresql_settings::table_settings (
67
# lint:ignore:140chars
78
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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Defined type for PostgreSQL autovacuum_cost_delay
22
#
3-
# @summary Defined type for PostgreSQL autovacuum_cost_delay
4-
3+
# @summary
4+
# Defined type for PostgreSQL autovacuum_cost_delay
5+
#
6+
# @param table_name [String]
7+
# Name of the table
58
define pe_databases::set_puppetdb_table_autovacuum_cost_delay_zero (
69
String $table_name = $title,
710
) {

manifests/set_table_attribute.pp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
# Defined type for PostgreSQL table attributes
22
#
3-
# @summary Defined type for PostgreSQL table attributes
4-
3+
# @summary
4+
# Defined type for PostgreSQL table attributes
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+
#
515
define pe_databases::set_table_attribute (
616
String $db,
717
String $table_name,

spec/classes/pg_repack_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
context "on #{os}" do
66
let(:pre_condition) do
77
"class { 'pe_databases':
8-
manage_database_backups => false,
98
manage_postgresql_settings => false,
109
manage_table_settings => false,
1110
}"

0 commit comments

Comments
 (0)