summaryrefslogtreecommitdiff
path: root/DOC_CHANGES.md
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-08-22 11:58:30 -0700
committerClaire McQuin <claire@getchef.com>2014-08-22 12:02:31 -0700
commitdcd287fe21daa1ca2ca7979e135d278f9f626bd2 (patch)
treedd40a5f08990eaf565d262b5d52376412ba8e8bc /DOC_CHANGES.md
parent6be5678fe7e0a5c1cf5a96ec096cf7e2d7bef194 (diff)
downloadchef-dcd287fe21daa1ca2ca7979e135d278f9f626bd2.tar.gz
Update for enhancement of data_bag_item to fetch encrypted data bag items.
Diffstat (limited to 'DOC_CHANGES.md')
-rw-r--r--DOC_CHANGES.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/DOC_CHANGES.md b/DOC_CHANGES.md
index 7ce531b3b5..1ef0a7830c 100644
--- a/DOC_CHANGES.md
+++ b/DOC_CHANGES.md
@@ -14,9 +14,9 @@ Description of the required change.
+ * Exact matches take precedence no matter what, and should never throw exceptions.
+ * Matching multiple constraints raises a <code>RuntimeError</code>.
+ * The following constraints are allowed: <code><,<=,>,>=,~></code>.
-+
++
+ The following is an example of using the method with constraints:
-+
++
+ ```ruby
+ value_for_platform(
+ "os1" => {
@@ -71,3 +71,8 @@ action :configure_startup - sets the startup type on the resource to the value o
attribute startup_type - the value as a symbol that the startup type should be set to on the service, valid options :automatic, :manual, :disabled
Note that the service resource will also continue to set the startup type to automatic or disabled, respectively, when the enabled or disabled actions are used.
+
+### Fetch encrypted data bag items with dsl method
+DSL method `data_bag_item` now takes an optional String parameter `secret`, which is used to interact with encrypted data bag items.
+If the data bag item being fetched is encrypted and no `secret` is provided, Chef looks for a secret at `Chef::Config[:encrypted_data_bag_secret]`.
+If `secret` is provided, but the data bag item is not encrypted, then a regular data bag item is returned (no decryption is attempted).