Closed axos88 closed 7 years ago
This should give you what you're looking for:
https://www.vagrantup.com/docs/provisioning/chef_common.html#json
Cheers!
Please reopen, and read the issue more carefully. That option gives normal-level attributes, which are overridden by any overrides defined in a cookbook.
@chrisroberts
@chrisroberts
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
In the chef provisioner, I would like to see a method to define attributes at the highest level (maybe automatic, through the installation of an ohai plugin?), in order to be able to override things that are specific to the vagrant run:
The problem I am facing is that some wrapper cookbooks already have 'override'-s defined, and there seems to be no way to override those to fit the vagrant environment, as chef.json seems to operate on the normal level.
This could drop a file similar to dna.json into the ohai plugins directory, to make these attributes be on automatic level.