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.
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.