diff --git a/providers/monitor.rb b/providers/monitor.rb index f438e226..493a562d 100644 --- a/providers/monitor.rb +++ b/providers/monitor.rb @@ -23,6 +23,7 @@ def whyrun_supported? :instances => new_resource.instances ) cookbook new_resource.cookbook + sensitive true if Chef::Resource.instance_methods(false).include?(:sensitive) notifies :restart, 'service[datadog-agent]', :delayed if node['datadog']['agent_start'] end @@ -36,6 +37,7 @@ def whyrun_supported? Chef::Log.debug "Removing #{new_resource.name} from #{confd_dir}" file ::File.join(confd_dir, "#{new_resource.name}.yaml") do action :delete + sensitive true if Chef::Resource.instance_methods(false).include?(:sensitive) notifies :restart, 'service[datadog-agent]', :delayed if node['datadog']['agent_start'] end diff --git a/recipes/dd-agent.rb b/recipes/dd-agent.rb index f8fcbfc4..970bb4c8 100644 --- a/recipes/dd-agent.rb +++ b/recipes/dd-agent.rb @@ -63,6 +63,7 @@ :api_key => node['datadog']['api_key'], :dd_url => node['datadog']['url'] ) + sensitive true if Chef::Resource.instance_methods(false).include?(:sensitive) end # Common configuration