|
31 | 31 | }
|
32 | 32 |
|
33 | 33 | if $facts.dig('pe_databases', 'have_systemd') {
|
34 |
| - if $manage_database_maintenance and (versioncmp('2019.0.2', $facts['pe_server_version']) <= 0) { |
35 |
| - class {'pe_databases::pg_repack': |
36 |
| - disable_maintenance => $disable_maintenance, |
| 34 | + if versioncmp('2019.0.2', $facts['pe_server_version']) <= 0 { |
| 35 | + if $manage_database_maintenance { |
| 36 | + class {'pe_databases::pg_repack': |
| 37 | + disable_maintenance => $disable_maintenance, |
| 38 | + } |
| 39 | + if $manage_table_settings { |
| 40 | + # This is to provide for situations, like PE XL, |
| 41 | + # where the pe-puppetdb database does not exist on the PostgreSQL system being tuned. |
| 42 | + # In PE XL, the Master and Replica run PostgreSQL for all databases *except* for pe-puppetdb. |
| 43 | + include pe_databases::postgresql_settings::table_settings |
| 44 | + } |
37 | 45 | }
|
38 |
| - if $manage_table_settings { |
39 |
| - # This is to provide for situations, like PE XL, |
40 |
| - # where the pe-puppetdb database does not exist on the PostgreSQL system being tuned. |
41 |
| - # In PE XL, the Master and Replica run PostgreSQL for all databases *except* for pe-puppetdb. |
42 |
| - include pe_databases::postgresql_settings::table_settings |
| 46 | + if defined('$manage_database_backups') { |
| 47 | + class { 'pe_databases::backup': |
| 48 | + disable_maintenance => ! $manage_database_backups, |
| 49 | + } |
43 | 50 | }
|
44 | 51 | }
|
45 | 52 | else {
|
|
48 | 55 | loglevel => warning,
|
49 | 56 | }
|
50 | 57 | }
|
51 |
| - if defined('$manage_database_backups') { |
52 |
| - class { 'pe_databases::backup': |
53 |
| - disable_maintenance => ! $manage_database_backups, |
54 |
| - } |
55 |
| - } |
56 | 58 | }
|
57 | 59 | else {
|
58 | 60 | notify { 'pe_databases_systemd_warn':
|
|
0 commit comments