-
Notifications
You must be signed in to change notification settings - Fork 680
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
inspec vendor meta profiles fails when dependency profile is in Automate asset store #1632
Comments
@jeremymv2 have you vendored the profiles? see http://lollyrock.com/articles/chef-compliance-meta-profiles |
@chris-rock Yes, I believe I'm vendoring the profile correctly. It actually appears to be failing on that step. There's not much to the profile at all, just a reference in the inspec.yml to a profile (admin/ssh) that I've already uploaded to Automate. My Here is the profile:
Vendoring:
During the vendoring it appears to be failing on https://github.com/chef/inspec/blob/master/lib/bundles/inspec-compliance/target.rb#L83-L84 because of path scheme in |
Description
Inspec meta profiles do not support profile dependencies residing in Automate when uploading a meta-profile.
InSpec and Platform Version
inspec 1.19.1
Replication Case
Upload a dependency profile to Automate, then create a meta-profile with the prior profile declared as a dependency via
compliance: ../..
like so:Possible Solutions
The issue comes from this location:
https://github.com/chef/inspec/blob/master/lib/bundles/inspec-compliance/target.rb#L83-L84
The scheme being matched is assuming standalone Compliance Server path ie. (/owners/../) Automate profile asset store does not have the same URI path therefore the []' for nil:NilClass error.
Stacktrace
Please include the stacktrace output or link to a gist of it, if there is one.
The text was updated successfully, but these errors were encountered: