You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the $conf_dir_purge setting is true and $agent5_enable is false, puppet will purge all the directories of the integrations in conf.d created by first class integration, ie. datadog_agent::integrations::*, and not those created by datadog_agent::integration. It will then try to create the yaml file for the check and fail, as the directory is gone.
This seems to occur because while datadog_agent::integration creates a file resource for the directory when $agent5_enable is false, datadog_agent::integrations::* do not.
The text was updated successfully, but these errors were encountered:
As a result, having these flags set will result in an error like:
Error: Could not set 'file' on ensure: No such file or directory @ dir_s_mkdir - /etc/datadog-agent/conf.d/disk.d/conf.yaml20190501-1944-1hui08f.lock (file: /etc/puppetlabs/code/puppet-cloud/module-2/datadog_agent/manifests/integrations/disk.pp, line: 67)
Puppet doesn't have a way to recursively create files along a path, so this would need to be fixed by tracking the file with something like:
I also would like to see a solution to this problem, because using $conf_dir_purge is an effective way to remove a check that is no longer needed from a hosts.
If the $conf_dir_purge setting is true and $agent5_enable is false, puppet will purge all the directories of the integrations in conf.d created by first class integration, ie. datadog_agent::integrations::*, and not those created by datadog_agent::integration. It will then try to create the yaml file for the check and fail, as the directory is gone.
This seems to occur because while datadog_agent::integration creates a file resource for the directory when $agent5_enable is false, datadog_agent::integrations::* do not.
The text was updated successfully, but these errors were encountered: