diff options
-rw-r--r-- | DOC_CHANGES.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/DOC_CHANGES.md b/DOC_CHANGES.md index b1121e2bf4..92a178e20b 100644 --- a/DOC_CHANGES.md +++ b/DOC_CHANGES.md @@ -6,3 +6,19 @@ Example Doc Change: Description of the required change. --> +### chef-client -j JSON +Add to the [description of chef-client options](https://docs.chef.io/ctl_chef_client.html#options): + +> This option can also be used to set a node's `chef_environment`. For example, +running `chef-client -j /path/to/file.json` where `/path/to/file.json` is +similar to: +``` +{ + "chef_environment": "pre-production" +} +``` +will set the node's environment to `"pre-production"`. + +> *Note that the environment specified by `chef_environment` in your JSON will +take precedence over an environment specified by `-E ENVIROMENT` when both options +are provided.* |