Skip to content

Agent 7 support#588

Merged
albertvaka merged 38 commits intomasterfrom
albertvaka/agent-7-support
Dec 18, 2019
Merged

Agent 7 support#588
albertvaka merged 38 commits intomasterfrom
albertvaka/agent-7-support

Conversation

@albertvaka
Copy link
Copy Markdown
Contributor

  • 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.

@albertvaka albertvaka force-pushed the albertvaka/agent-7-support branch from 319e7c9 to 52ef6dd Compare December 2, 2019 17:36
@albertvaka albertvaka force-pushed the albertvaka/agent-7-support branch from b619b3d to dcf1416 Compare December 2, 2019 18:19
@albertvaka albertvaka requested a review from truthbk December 3, 2019 10:50
Copy link
Copy Markdown
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

🙇

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread lib/facter/agent_repo.rb
Comment thread manifests/init.pp
Comment thread manifests/init.pp
Comment thread metadata.json
Comment thread spec/classes/datadog_agent_integrations_cassandra_spec.rb Outdated
Comment thread spec/classes/datadog_agent_spec.rb Outdated
Comment thread spec/classes/datadog_agent_ubuntu_spec.rb Outdated
Comment thread manifests/integrations/elasticsearch.pp
@albertvaka albertvaka force-pushed the albertvaka/agent-7-support branch from 69b1232 to 03b7c19 Compare December 9, 2019 17:59
Copy link
Copy Markdown
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! Thank you! 🙇

Comment thread metadata.json
"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>",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you deserve to be first after all this work but 🙇

Comment thread manifests/windows.pp Outdated
Comment thread README.md

| variable name | description |
|-----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `agent_major_version` | The version of the Agent to install: either 5, 6 or 7 (default: 7). |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/)

Copy link
Copy Markdown
Contributor Author

@albertvaka albertvaka Dec 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

@albertvaka albertvaka force-pushed the albertvaka/agent-7-support branch from 785b0f8 to 7128420 Compare December 17, 2019 11:33
Comment thread CHANGELOG.md Outdated
Comment thread CHANGELOG.md Outdated
@albertvaka albertvaka merged commit 5c3ac3e into master Dec 18, 2019
@albertvaka albertvaka deleted the albertvaka/agent-7-support branch December 18, 2019 15:29
cegeka-jenkins pushed a commit to cegeka/puppet-datadog_agent that referenced this pull request Apr 6, 2020
- 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.
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

Successfully merging this pull request may close these issues.

3 participants