diff --git a/Puppetfile b/Puppetfile index 6bc31f8..88dc8de 100644 --- a/Puppetfile +++ b/Puppetfile @@ -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' diff --git a/site/profile/manifests/pe_postgresql_management.pp b/site/profile/manifests/pe_postgresql_management.pp index 7cca5da..08b6cb6 100644 --- a/site/profile/manifests/pe_postgresql_management.pp +++ b/site/profile/manifests/pe_postgresql_management.pp @@ -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 + } + }