Notify console-services when restarting postgresql
Due to an issue where console-services fails to complete about 2 requests after a restart of postgresql, let's go ahead and restart the console-services service if we restart the postgresql service. If the console-services is not on the same node as postgresql then set all_in_one_pe_install to false and console-services will not be restarted.
This commit is contained in:
parent
a9f4fe0639
commit
d5854041f8
@ -1,6 +1,7 @@
|
|||||||
class profile::pe_postgresql_management (
|
class profile::pe_postgresql_management (
|
||||||
$autovacuum_scale_factor = '.01',
|
$autovacuum_scale_factor = '.01',
|
||||||
$manage_postgresql_service = true,
|
$manage_postgresql_service = true,
|
||||||
|
$all_in_one_pe_install = true,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
$postgresql_service_resource_name = 'postgresqld'
|
$postgresql_service_resource_name = 'postgresqld'
|
||||||
@ -9,12 +10,17 @@ class profile::pe_postgresql_management (
|
|||||||
true => Service[$postgresql_service_resource_name],
|
true => Service[$postgresql_service_resource_name],
|
||||||
default => undef,
|
default => undef,
|
||||||
}
|
}
|
||||||
|
$notify_console_services = $all_in_one_pe_install ? {
|
||||||
|
true => Service['pe-console-services'],
|
||||||
|
default => undef,
|
||||||
|
}
|
||||||
|
|
||||||
if $manage_postgresql_service {
|
if $manage_postgresql_service {
|
||||||
service { $postgresql_service_resource_name :
|
service { $postgresql_service_resource_name :
|
||||||
name => $postgresql_service_name,
|
name => $postgresql_service_name,
|
||||||
ensure => running,
|
ensure => running,
|
||||||
enable => true,
|
enable => true,
|
||||||
|
notify => $notify_console_services
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user