From f5eddf76fecb3091a38ca430ffaf3d39594e49d2 Mon Sep 17 00:00:00 2001 From: Liel Chayoun Date: Fri, 30 Jul 2021 10:02:51 +0300 Subject: [PATCH] #805 integration resource should notify a restart of the agent after installing a new version Adding `notifies` --- resources/integration.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/integration.rb b/resources/integration.rb index bd7c7895..12301be0 100644 --- a/resources/integration.rb +++ b/resources/integration.rb @@ -27,6 +27,7 @@ output = shell_out("#{agent_exe_filepath} integration show -q #{new_resource.property_name}").stdout output.strip == new_resource.version } + notifies :restart, 'service[datadog-agent]' if node['datadog']['agent_start'] end end @@ -46,6 +47,7 @@ output = shell_out("#{agent_exe_filepath} integration show -q #{new_resource.property_name}").stdout output.strip.empty? } + notifies :restart, 'service[datadog-agent]' if node['datadog']['agent_start'] end end