Skip to content

Clean up legacy Agent 5 code#15

Merged
xenon8 merged 6 commits intoxenon8/puppet-8-upgradefrom
fanny/handle-a5
Mar 6, 2025
Merged

Clean up legacy Agent 5 code#15
xenon8 merged 6 commits intoxenon8/puppet-8-upgradefrom
fanny/handle-a5

Conversation

@fanny-jiang
Copy link
Copy Markdown
Collaborator

@fanny-jiang fanny-jiang commented Mar 5, 2025

What does this PR do?

CircleCI: https://app.circleci.com/pipelines/github/DataDog/puppet-datadog-agent/1139/workflows/1221affb-fd6b-4c13-955c-4cbe9c692c45

  • Cleanup legacy Agent 5 code
  • Add spec test for when agent_version: 5 is configured

Motivation

Drop support for Agent 5

Additional Notes

Expected module behavior:

  • If either agent_version: 5 or agent_major_version: '5.x.x are configured, the module apply should fail with the message: agent_major_version must be either 6 or 7, not 5
  • If neither agent_version nor agent_major_version params are configured, the module should install/upgrade the agent to the default latest agent 7.

Describe your test plan

@fanny-jiang fanny-jiang marked this pull request as ready for review March 5, 2025 15:50
@fanny-jiang fanny-jiang requested a review from xenon8 March 5, 2025 15:50
Comment thread manifests/integrations/http_check.pp
Copy link
Copy Markdown
Owner

@xenon8 xenon8 left a comment

Choose a reason for hiding this comment

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

@fanny-jiang just one comment on the http_check class

@fanny-jiang fanny-jiang requested a review from xenon8 March 6, 2025 16:08
@fanny-jiang fanny-jiang changed the title Add rspec test for Agent 5 installation Clean up legacy Agent 5 code Mar 6, 2025
@xenon8 xenon8 merged commit e6605e9 into xenon8/puppet-8-upgrade Mar 6, 2025
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.

2 participants