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
Allow multiple profiles in a git repository #1237
Comments
This is a great idea. Instead of focusing on git, i would like to focus on a file structure. It should not matter if it is a local file structure or a git structure. It could look like:
Question:
We may need to distinguish between a profile location and and profiles we execute. Right now, we just run:
Maybe that is the case where we know we just need to execute one profile.
If we have multiple profiles included in a tar just use:
We need to ensure that the CLI is backwards compatible with the current approach. |
👍 Bundler/Gem work this way too. Namely, bundler will search for gemspec's in subdirectories as well, we could do something similar with metadata.rb. |
As discussed in #1236 we have different locations, where multiple profiles are stored:
By separating out the profile locations and the profile we are executing, we cover that. Its similar to a run-list in chef, but I still want to make keep the simplicity of the current system. Therefore
That would also eliminate the need to have
Once we logged in to compliance or supermarket, inspec will would load the location implicitly. Question: How do we deal with profiles that have the same |
Any updates on this? Particularly when needing to reference multiple profiles in a Git repo? |
Do we have any update on this? |
Hi, any news on this? |
Any news on this please? |
@clintoncwolfe can you please briefly explain how #4217 can be used in order to use multiple profiles? |
This is the example pasted from #4217:
This would fetch the same repo, and pluck out two profiles from two different paths. I'm not sure if it fetches the same repo once or twice in this scenario; we could probably optimize that. If that performance aspect is a problem, let's open an issue and we can see about improving caching. |
Thank you @clintoncwolfe. Is there a CLI option to do the same? |
@clintoncwolfe. Is there a CLI option to do the same? |
No, at this time there is not a CLI option to fetch a relative path. |
I think it would be great to add that ability to the cli - any thoughts on doing that |
At the moment, InSpec's dependency management allows only one profile per git repository. This allows tags to be used to version the profile in the repo.
This feature request wants the ability to store multiple profiles in a single repository, under a sub-directory or at root.
Reasons that come to my mind:
Berkshelf example:
The text was updated successfully, but these errors were encountered: