-
Notifications
You must be signed in to change notification settings - Fork 682
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
CFINSPEC-68 Adds target_id in the reporter. #5895
Conversation
✔️ Deploy Preview for chef-inspec ready! 🔨 Explore the source changes: 30ef964 🔍 Inspect the deploy log: https://app.netlify.com/sites/chef-inspec/deploys/622a161f6f346c0009a4669e 😎 Browse the preview: https://deploy-preview-5895--chef-inspec.netlify.app |
18e690b
to
8b42d01
Compare
What do you think about maybe calling this target_uuid for clarity rather than ID. ID could mean a lot of things. |
We want to keep it as target_id it refers to the unique id of the target. @clintoncwolfe any thoughts on this? |
The internal Chef term for this in Automate is target_id. |
Roger that. |
22bccb8
to
96f6108
Compare
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
…generates blank string on Windows due to which it fails Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
a48eb37
to
30ef964
Compare
So the ability to pass an unique value to the test has been removed? The docs still state: "--target-id=TARGET_ID Provide a ID which will be included on reports." Back in 2018 the feature was added to pass an own identifier and now its gone? #3319 Would be great to have a clarification on how to set an own target_id. |
Yes, we are reverting to the behavior in which the target id is always generated. |
We run all Inspec tests using an Ansible Playbook. Lets say I would like to test all servers connected to product "A". I would then pass '--target-id=A-HOSTS' to the playbook so it would iterate over the Ansible Inventory which servers belong to the product "A". Each host would then resolve its hostname and add this as the target_id. Would it not be better if the default would be a generated UUID. If the --target-id is passed then the target_id is not generated. |
Signed-off-by: Vasu1105 vasundhara.jagdale@chef.io
Description
This adds the target_id in the reporter which is nothing but the UUID generated by train to uniquely identify the target system/node.
The json_automate data looks like this after integrating target_id in the reporter.
Related Issue
Types of changes
Checklist: