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

Add installation info metadata support #707

Merged
merged 5 commits into from
Apr 27, 2020
Merged

Conversation

kbogtob
Copy link
Contributor

@kbogtob kbogtob commented Apr 22, 2020

What does this PR do?

It adds the installation info metadata to the chef cookbook so the agent returns that it was installed by the triple chef/chef version/cookbook version

Motivation.

Allow customers to track their chef installation. Allows us to make stats on installation methods.

@kbogtob kbogtob requested a review from a team as a code owner April 22, 2020 09:34

variables(
install_method: "chef-#{Chef::VERSION}",
install_method_version: "datadog-cookbook-#{Chef::Datadog.cookbook_version(run_context)}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we want to call it datadog_cookbook so the dash - separates name from version.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Woops! Good catch

@@ -0,0 +1,6 @@
<%= JSON.parse(({
Copy link
Contributor

Choose a reason for hiding this comment

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

JSON.parse().to_json.to_yaml is this the way to print a yaml? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

C/p from other template, I'll improve

@kbogtob kbogtob merged commit 361ec01 into master Apr 27, 2020
@kbogtob kbogtob deleted the kbogtob/add-install-info branch April 27, 2020 08:20
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