I want to test a cookbook in Vagrant, using chef-solo for provisioning.
According to the Chef documentation chef-solo can use environments
How do I specify an environment, so that chef-solo will use it? The
documentation is not really clear on this. I want that
node.chef_environment returns ‘stage’ on the chef-solo run, but with
chef-solo node.chef_environment seems always to be ‘_default’.
Sorry if this is a FAQ but I did not find a usefull pointers/examples yet.
Best regards and thanks,