Skip to content

$conf_dir_purge breaks when $agent5_enable is false #512

@gotyaoi

Description

@gotyaoi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions