Agent 7 support#588
Conversation
319e7c9 to
52ef6dd
Compare
Renamed to legacy_conf_dir
b619b3d to
dcf1416
Compare
There was a problem hiding this comment.
Bro..... 👏 👏 👏
Incredible refactor, thank you so much for doing this. Such an improved structure, so much cleaner on so many levels. I believe the A7 support looks great too. Added a few comments, but most are just little things, suggestions or nits. The spec tests being green makes me quite confident too!
🙇
Co-Authored-By: Jaime Fullaondo <jaime.fullaondo@datadoghq.com>
69b1232 to
03b7c19
Compare
truthbk
left a comment
There was a problem hiding this comment.
This looks great! Thank you! 🙇
| "name": "datadog-datadog_agent", | ||
| "version": "3.0.0", | ||
| "author": "James Turnbull (<james@lovedthanlost.net>) and Rob Terhaar (<rob@atlanticdynamic>) for Datadog Inc.", | ||
| "author": "James Turnbull <james@lovedthanlost.net>, Rob Terhaar <rob@atlanticdynamic>, Jaime Fullaondo <jaime.fullaondo@datadoghq.com>, Albert Vaca <albert.vaca@datadoghq.com>", |
There was a problem hiding this comment.
I think you deserve to be first after all this work but 🙇
…support # Conflicts: # metadata.json
|
|
||
| | variable name | description | | ||
| |-----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| | `agent_major_version` | The version of the Agent to install: either 5, 6 or 7 (default: 7). | |
There was a problem hiding this comment.
I think agent_repo_uri should be mentioned here, as it's the only way to use a custom repo. For ubuntu / debian, agent_default_release should be documented as well.
Moreover, the behavior and expected values of agent_repo_uri should be indicated (right now, you have to dig through the source code to know what you're supposed to do):
- for
apt, the repo url (without release branch and component) (eg.https://apt.datadoghq.com/) - for
yum, the repo url with the release branch, component and arch (eg.https://yum.datadoghq.com/stable/7/x86_64) - for Windows, the bucket url prefix (eg.
https://https://s3.amazonaws.com/ddagent-windows-stable/)
There was a problem hiding this comment.
This was undocumented before A7 support, so I left it as it was. I documented both in init.pp (in the source code, but that's where most parameter descriptions are).
785b0f8 to
7128420
Compare
As this is used in Windows.
Co-Authored-By: Kylian Serrania <kylian.serrania@datadoghq.com>
- Removes agent6/agent5 prefixes in variable names. - Introduces `agent_major_version` setting that replaces `agent5_enable`. - Unifies config for Agent 5/6 repos and removes use of facter. - Removes uses of `validate_legacy`. - Keeps the group ownership of config files as 'dd-agent', as they come in the agent package. - Remove `service_name` and `package_name` parameters, since there is no use in changing these. - Import the new RPM signing key only when installing Agent 7. - Bumps major version to 3.0. - Removes 1.x and 2.x instructions from README: these can still be found in puppetforge selecting an older version of the module.
agent_major_versionsetting that replacesagent5_enable.validate_legacy.service_nameandpackage_nameparameters, since there is no use in changing these.