diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-05-15 11:25:41 -0500 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-05-15 12:11:17 -0500 |
commit | 6fe51cb8facde96fb5d40cd61d0a2ddb28e8b431 (patch) | |
tree | 5cab4f6f9c18ed75a41ea6f55a8398399efd00a1 /RELEASE_NOTES.md | |
parent | 741a0e41fb9260ce50edbc32f1f06e2e8ac29713 (diff) | |
download | chef-6fe51cb8facde96fb5d40cd61d0a2ddb28e8b431.tar.gz |
Add RELEASE_NOTES for #3318
Diffstat (limited to 'RELEASE_NOTES.md')
-rw-r--r-- | RELEASE_NOTES.md | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 5387870856..cc59716ff9 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -33,3 +33,39 @@ remote_file 'C:\Foo.tar.gz' do source "\\\\foohost\\fooshare\\Foo.tar.gz" end ``` + +## WindowsPackage resource supports URLs + +The `windows_package` resource now allows specifying URLs for the source +attribute. For example, you could install 7zip with the following resource: + +```ruby +windows_package '7zip' do + source "http://www.7-zip.org/a/7z938-x64.msi" +end +``` + +Internally, this is done by using a `remote_file` resource to download the +contents at the specified url. If needed, you can modify the attributes of +the `remote_file` resource using the `remote_file_attributes` attribute. +The `remote_file_attributes` accepts a hash of attributes that will be set +on the underlying remote_file. For example, the checksum of the contents can +be verified using + +```ruby +windows_package '7zip' do + source "http://www.7-zip.org/a/7z938-x64.msi" + remote_file_attributes :checksum => '7c8e873991c82ad9cfcdbdf45254ea6101e9a645e12977dcd518979e50fdedf3' +end +``` + +To make the transition easier from the Windows cookbook, `windows_package` also +accepts the `checksum` attribute, and the previous resource could be rewritten +as: + +```ruby +windows_package '7zip' do + source "http://www.7-zip.org/a/7z938-x64.msi" + checksum '7c8e873991c82ad9cfcdbdf45254ea6101e9a645e12977dcd518979e50fdedf3' +end +``` |