- From: Thomas Seliger <
>
- To:
- Subject: [chef] Setting an environment for a chef-solo run
- Date: Tue, 10 Sep 2013 16:21:25 +0200
Hello,
I want to test a cookbook in Vagrant, using chef-solo for provisioning.
According to the Chef documentation chef-solo can use environments
(
http://docs.opscode.com/chef_solo.html#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,
Tom
- [chef] Setting an environment for a chef-solo run, Thomas Seliger, 09/10/2013
Archive powered by MHonArc 2.6.16.