Add pe_databases::maintenance to Puppetfile and profile

Default to inlcuding a cron job for running vacuumdb --analyze and
reindxdx for all databases.
This commit is contained in:
Nick Walker 2016-01-11 09:40:46 -08:00
parent d5854041f8
commit edba37efb1
2 changed files with 13 additions and 3 deletions

View File

@ -38,3 +38,7 @@ mod 'gms',
mod 'pltraining-rbac',
:git => 'https://github.com/puppetlabs/pltraining-rbac',
:ref => '2f60e1789a721ce83f8df061e13f8bf81cd4e4ce'
mod 'pe_databases',
:git => 'https://github.com/npwalker/pe_databases',
:ref => 'ce51abffa029d910f84b44160791e7406f2da864'

View File

@ -1,7 +1,8 @@
class profile::pe_postgresql_management (
$autovacuum_scale_factor = '.01',
$manage_postgresql_service = true,
$all_in_one_pe_install = true,
$autovacuum_scale_factor = '.01',
$manage_postgresql_service = true,
$all_in_one_pe_install = true,
Boolean $include_pe_databases_maintenance = true,
) {
$postgresql_service_resource_name = 'postgresqld'
@ -32,4 +33,9 @@ class profile::pe_postgresql_management (
notify => $notify_postgresql_service,
}
#https://github.com/npwalker/pe_databases
if $include_pe_databases_maintenance {
include pe_databases::maintenance
}
}