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
For module users that use resource-style declarations, integration classes become unusable due to the require datadog_agent declaration in each integration class.
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Package[datadog-agent] is already declared at (file: /etc/puppetlabs/code/environments/test/modules/datadog_agent/manifests/init.pp, line: 491); cannot redeclare...
Proposal
The require datadog_agent statement in each module is not necessary, especially given many of the resources already contain statements to require datadog_agent::params::package_name.
Additional Background
My org must implement additional logic to install the datadog-agent package outside of this module, mainly due to limitations of the module (See #742 and #747) and would like to utilize the integration classes as well.
The text was updated successfully, but these errors were encountered:
jmcnatt
changed the title
require datadog_agent on each integration breaks module functionality
Duplicate package resource when manage_install is false and package is declared outside of module
Mar 23, 2023
Scenario
For module users that use resource-style declarations, integration classes become unusable due to the
require datadog_agent
declaration in each integration class.Consider the following snippet:
This implementation results in
Proposal
The
require datadog_agent
statement in each module is not necessary, especially given many of the resources already contain statements to requiredatadog_agent::params::package_name
.Additional Background
My org must implement additional logic to install the
datadog-agent
package outside of this module, mainly due to limitations of the module (See #742 and #747) and would like to utilize the integration classes as well.The text was updated successfully, but these errors were encountered: