matschaffer/knife-solo — Issue #31: Make it possible to set an environment (node.chef_environment) for your node/chef run
Author: TylerRick
Created: 2012-02-25 00:47:12+00:00
State: open

I know chef-solo doesn't officially support environments yet, but I have a need for them, and I noticed that littlechef has added a similar feature:

https://github.com/tobami/littlechef/pull/55
https://github.com/thekorn/littlechef/commit/d7a227f6c751ca31ffa90722995a8a89889bb851

My workaround for now is this:

```ruby
node.chef_environment node[:app_environment] if node[:app_environment]
```