Conversation
truthbk
left a comment
There was a problem hiding this comment.
Mostly looks good. Could you please add spec tests for the default + overriden cases?
|
I will add some tests |
|
just a note: in |
|
|
78eac75 to
dec93c6
Compare
There was a problem hiding this comment.
I don't think the current manifest by default will yield a valid configuration for older A6 agents, unfortunately we need to support them: the problem we have here is that if this puppet manifest is used to install an older Agent6 (pre-site option) say 6.2.x it will yield a configuration with an empty dd_url and site set. It causes no harm to have site set, but the empty dd_url would be a no-no.
There was a problem hiding this comment.
Unlike A5, A6 has a default value for dd_url: https://github.com/DataDog/datadog-agent/blob/60fc833599c5015c15c741649840dc6bda930275/pkg/config/config.go#L75. That's why a left this parameter empty
There was a problem hiding this comment.
Just tested, with an empty dd_url, agent 6.2.0 still reports to app.datadoghq.com
There was a problem hiding this comment.
This is accurate. Older agents DID specify a default for dd_url, apparently an empty string will not override this default vcalue. This was changed with the introduction of site, but this already accounts for that. 👍
73a5cdb to
14b2523
Compare
* Add 'site' option support * Move default site to params * Ensure dd_url is empty by default for agent 6 * Add spec test for new site option
No description provided.