fix boolean statement
MODIFY
recipes/system-probe.rb
recipes/system-probe.rb
@@ -35,9 +35,9 @@ template system_probe_config_file do
owner 'dd-agent'
group 'root'
mode '640'
- notifies :restart, 'service[datadog-agent-sysprobe]', :delayed unless sysprobe_agent_start == false
+ notifies :restart, 'service[datadog-agent-sysprobe]', :delayed unless node['datadog']['system_probe']['enabled'] == false
# since process-agent collects network info through system-probe, enabling system-probe should also restart process-agent
- notifies :restart, 'service[datadog-agent]', :delayed unless sysprobe_agent_start == false
+ notifies :restart, 'service[datadog-agent]', :delayed unless node['datadog']['system_probe']['enabled'] == false
end
# Common configuration
@@ -54,5 +54,5 @@ service 'datadog-agent-sysprobe' do
action [sysprobe_agent_start]
provider service_provider unless service_provider.nil?
supports :restart => true, :status => true, :start => true, :stop => true
- subscribes :restart, "template[#{system_probe_config_file}]", :delayed unless sysprobe_agent_start == false
+ subscribes :restart, "template[#{system_probe_config_file}]", :delayed unless node['datadog']['system_probe']['enabled'] == false
end

fix boolean statement