summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornimisha <nimisha.sharad@clogeny.com>2016-11-01 15:12:20 +0530
committernimisha <nimisha.sharad@clogeny.com>2016-11-04 15:31:30 +0530
commit2bbb667f52e3fbb88de3c838e6ae5eb4e8edbd50 (patch)
tree5c40df3047588a535ba0915d141830a485bf633d
parenta155e20e796e16902498634efe9798b135395d9a (diff)
downloadchef-2bbb667f52e3fbb88de3c838e6ae5eb4e8edbd50.tar.gz
Updated release docs for msu_package resource
Signed-off-by: nimisha <nimisha.sharad@clogeny.com>
-rw-r--r--DOC_CHANGES.md37
-rw-r--r--RELEASE_NOTES.md25
2 files changed, 62 insertions, 0 deletions
diff --git a/DOC_CHANGES.md b/DOC_CHANGES.md
new file mode 100644
index 0000000000..7471cca2cf
--- /dev/null
+++ b/DOC_CHANGES.md
@@ -0,0 +1,37 @@
+<!---
+This file is reset every time a new release is done. This file describes changes that have not yet been released.
+
+Example Doc Change:
+### Headline for the required change
+Description of the required change.
+-->
+
+## Doc changes for Chef 12.13
+
+### `msu_package` resource
+
+`msu_package` resource is used for installation and removal of Microsoft Update(MSU) packages on Windows.
+
+Example:
+```ruby
+msu_package 'Install Windows 2012R2 Update KB2959977' do
+ source 'C:\Users\xyz\AppData\Local\Temp\Windows8.1-KB2959977-x64.msu'
+ action :install
+end
+
+msu_package 'Remove Windows 2012R2 Update KB2959977' do
+ source 'C:\Users\xyz\AppData\Local\Temp\Windows8.1-KB2959977-x64.msu'
+ action :remove
+end
+
+# Using URL in source
+msu_package 'Install Windows 2012R2 Update KB2959977' do
+ source 'https://s3.amazonaws.com/my_bucket/Windows8.1-KB2959977-x64.msu'
+ action :install
+end
+
+msu_package 'Remove Windows 2012R2 Update KB2959977' do
+ source 'https://s3.amazonaws.com/my_bucket/Windows8.1-KB2959977-x64.msu'
+ action :remove
+end
+```
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 0150fcff98..ad1aa54028 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -5,6 +5,31 @@ Please see [https://docs.chef.io/release_notes.html](https://docs.chef.io/releas
## Highlighted enhancements for this release:
+* Added msu_package resource and provider which supports the installation of Microsoft Update(MSU) packages on Windows. Example:
+
+ ```ruby
+ msu_package 'Install Windows 2012R2 Update KB2959977' do
+ source 'C:\Users\xyz\AppData\Local\Temp\Windows8.1-KB2959977-x64.msu'
+ action :install
+ end
+
+ msu_package 'Remove Windows 2012R2 Update KB2959977' do
+ source 'C:\Users\xyz\AppData\Local\Temp\Windows8.1-KB2959977-x64.msu'
+ action :remove
+ end
+
+ # Using URL in source
+ msu_package 'Install Windows 2012R2 Update KB2959977' do
+ source 'https://s3.amazonaws.com/my_bucket/Windows8.1-KB2959977-x64.msu'
+ action :install
+ end
+
+ msu_package 'Remove Windows 2012R2 Update KB2959977' do
+ source 'https://s3.amazonaws.com/my_bucket/Windows8.1-KB2959977-x64.msu'
+ action :remove
+ end
+ ```
+
### `attribute_changed` event hook
In a cookbook library file, you can add this in order to print out all attribute changes in cookbooks: