summaryrefslogtreecommitdiff
path: root/RELEASE_NOTES.md
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-08-21 12:44:45 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-08-21 12:44:45 -0700
commit68ca480473ab4bcb302d003d40b9a76e39410268 (patch)
tree6850e620eb5650134d623f7687b333d0308b9286 /RELEASE_NOTES.md
parentd7fe2346c9c15799bb2218630a59b49e44d17d8d (diff)
downloadchef-68ca480473ab4bcb302d003d40b9a76e39410268.tar.gz
add md files for pr#1726
Diffstat (limited to 'RELEASE_NOTES.md')
-rw-r--r--RELEASE_NOTES.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index c098445e48..7cb51fad42 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,5 +1,22 @@
# Chef Client Release Notes 12.0.0:
+## Version Constraints in value_for_platform
+
+The `value_for_platform` helper can now take version constraints like `>=` and `~>`. This is particularly useful for users
+of RHEL 7 where the version numbers now look like `7.0.<buildnumber>`, so that they can do:
+
+```ruby
+value_for_platform(
+ "redhat" => {
+ "~> 7.0" => "version 7.x.y"
+ ">= 8.0" => "version 8.0.0 and greater"
+ }
+}
+```
+
+Note that if two version constraints match it is considered ambiguous and will raise an Exception. An exact match, however, will
+always take precedence over a version constraint.
+
## Git SCM provider now support environment attribute
You can now pass in a hash of environment variables into the git provider: