|
4 | 4 | # Manage the inclusion of the pg_repack class
|
5 | 5 | # @param disable_maintenance [Boolean] true or false (Default: false)
|
6 | 6 | # Disable or enable maintenance mode
|
7 |
| -# @param manage_postgresql_settings [Boolean] true or false (Default: true) |
8 |
| -# Manage PostgreSQL settings |
9 |
| -# @param manage_table_settings [Boolean] true or false (Default: false) |
10 |
| -# Manage table settings |
11 | 7 | # @param install_dir [String] Directory to install module into (Default: "/opt/puppetlabs/pe_databases")
|
12 | 8 | # @param scripts_dir [String] Directory to install scripts into (Default: "${install_dir}/scripts")
|
13 | 9 | # @param facts_tables_repack_timer [String] The Systemd timer for the pg_repack job affecting the 'facts' tables
|
14 | 10 | # @param catalogs_tables_repack_timer [String]The Systemd timer for the pg_repack job affecting the 'catalog' tables
|
15 | 11 | # @param other_tables_repack_timer [String] The Systemd timer for the pg_repack job affecting the 'other' tables
|
16 |
| -# @param reports_tables_repack_timer [String] The Systemd timer for the pg_repack job affecting the 'reports' tables |
17 |
| -# @param resource_events_tables_repack_timer [String] The Systemd timer for the pg_repack job affecting the 'resource_events' tables |
18 | 12 | class pe_databases (
|
19 | 13 | Boolean $manage_database_maintenance = true,
|
20 | 14 | Boolean $disable_maintenance = false,
|
| 15 | + Optional[Boolean] $manage_postgresql_settings = undef, |
| 16 | + Optional[Boolean] $manage_table_settings = undef, |
21 | 17 | String[1] $install_dir = '/opt/puppetlabs/pe_databases',
|
22 | 18 | String[1] $scripts_dir = "${install_dir}/scripts",
|
23 | 19 | String[1] $facts_tables_repack_timer = 'Tue,Sat *-*-* 04:30:00',
|
24 | 20 | String[1] $catalogs_tables_repack_timer = 'Sun,Thu *-*-* 04:30:00',
|
25 | 21 | String[1] $other_tables_repack_timer = '*-*-20 05:30:00',
|
| 22 | + Optional[String] $reports_tables_repack_timer = undef, |
| 23 | + Optional[String] $resource_events_tables_repack_timer = undef, |
26 | 24 | ) {
|
| 25 | + puppet_enterprise::deprecated_parameter{'pe_databases::manage_postgresql_settings': } |
| 26 | + puppet_enterprise::deprecated_parameter{'pe_databases::manage_table_settings': } |
| 27 | + puppet_enterprise::deprecated_parameter{'pe_databases::reports_tables_repack_timer': } |
| 28 | + puppet_enterprise::deprecated_parameter{'pe_databases::resource_events_tables_repack_timer': } |
| 29 | + |
27 | 30 | file { [$install_dir, $scripts_dir]:
|
28 | 31 | ensure => directory,
|
29 | 32 | mode => '0755',
|
|
0 commit comments