Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process integration is not merging hiera values #505

Open
marcomusso opened this issue Mar 19, 2019 · 2 comments
Open

Process integration is not merging hiera values #505

marcomusso opened this issue Mar 19, 2019 · 2 comments

Comments

@marcomusso
Copy link

When setting $hiera_processes => true, for '::datadog_agent::integrations::process' only the hiera values are considered and not the $processes parameter.

This is because the hiera lookup function is incorrect: setting the default_value to $processes doesn't mean merging the rsult of the lookup with the default_value (Default values are never merged with found values. from https://puppet.com/docs/puppet/5.2/hiera_use_function.html)

https://github.com/DataDog/puppet-datadog-agent/blob/master/manifests/integrations/process.pp#L53

I would suggest just to to $local_processes = $processes + lookup(... without default_value.

@marcomusso
Copy link
Author

marcomusso commented Mar 19, 2019

I'm testing a solution (using the same parameter name won't solve since the hiera values will override it anyway). Just an array in hiera should do the trick. Just confirm please that this is the intended behavior or not.

@marcomusso
Copy link
Author

This works for me: marcomusso@2d1def2
PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant