summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-02-11 09:08:46 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-02-11 09:08:46 -0800
commit6ca21c9ce206f1ada1c12a02afb46e3f1625a321 (patch)
tree6a817521ae3a9757edb346f0e00a08e491476ceb
parent4788d800c1cedda996811e35665bc26e4282c944 (diff)
downloadchef-6ca21c9ce206f1ada1c12a02afb46e3f1625a321.tar.gz
update release notes for chef-solo -r changes12.7.2
-rw-r--r--RELEASE_NOTES.md19
1 files changed, 17 insertions, 2 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 4c7d3d1c0d..80d3efd27b 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -41,9 +41,24 @@ EMEA customers in particular, and those customers who need reliable UTF-8 suppor
extremely bad UTF-8 handling bug in them which corrupted all UTF-8 data in the node. In 12.7.0 that bug was fixed, along with another fix to make resource and audit reporting more reliable when fed
non-UTF-8 (e.g. Latin-1/ISO-8859-1) characters.
-## Deleting folders with Chef Solo and the recipe_url config
+## Chef Solo -r (--recipe-url) changes
-Providing the `:recipe_url` config to Chef Solo would attempt to `rm -rf` the existing local Chef repo. This was a dangerous folder delete that trolled a few people so we removed the behavior. If you would like to keep this behavior you can provide the `:delete_entire_chef_repo` configuration and it will continue attempting to destroy the existing local Chef repo. This configuration only applies if you are using `:recipe_url`
+The use of the `-r` option to chef-client result in setting the `--run-list`:
+
+```
+chef-client -r 'role[foo]'
+```
+
+Passing the same argument to chef-solo:
+
+```
+chef-solo -r 'role[foo]'
+```
+
+Instead invokes the `--recipe-url` code, which had the side effect of running an immediate unprompted `rm -rf *` in the current working directory of the user. Due to this problem and other issues
+around this `rm -rf *` behavior it has been removed from the `--recipe-url` code in chef-solo. The use of `-r` in chef-solo to mean `--recipe-url` has also been deprecated.
+
+The `rm -rf *` behavior has been moved to a `--delete-entire-chef-repo` option. Users of chef-solo who want the old pre-12.7 behavior of `-r XXX` should therefore use `--recipe-url XXX --delete-entire-chef-repo`.
## Chef::REST