summaryrefslogtreecommitdiff
path: root/RELEASE_NOTES.md
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-05-13 09:38:43 -0700
committerTim Smith <tsmith@chef.io>2019-05-13 09:38:49 -0700
commit77411918cc9fb00aadba840095362b3df0b13bb8 (patch)
tree09dc95ca88ed1c41eecf833e0e39e4f192cef7f3 /RELEASE_NOTES.md
parent57ae7923d38ad481d534402f6c21312ac2fdf6bb (diff)
downloadchef-77411918cc9fb00aadba840095362b3df0b13bb8.tar.gz
Add additional release notes
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'RELEASE_NOTES.md')
-rw-r--r--RELEASE_NOTES.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index f2d08516e9..2522a5ab39 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -25,8 +25,41 @@ license acceptance. If the license is accepted, a marker file will be written to
### copy_properties_from in Custom Resources
+A new `copy_properties_from` method for custom resouces allows you copy properties from your custom resource into other resources you're calling so you can avoid unnecessarily repeating code.
+
+To inherit all the properties of another resource:
+```ruby
+resource_name :my_resource
+
+property :mode, String, default: '777'
+property :owner, String, default: 'app_user'
+property :group, String, default: 'admins'
+
+directory '/etc/myapp' do
+ copy_properties_from new_resource
+ recursive true
+end
+```
+
+To selectivly inherit certain properties from a resource:
+```ruby
+resource_name :my_resource
+
+property :mode, String, default: '777'
+property :owner, String, default: 'app_user'
+property :group, String, default: 'admins'
+
+directory '/etc/myapp' do
+ copy_properties_from(new_resource, :owner, :group, :mode)
+ mode '755'
+ recursive true
+end
+```
+
### ed25519 SSH key support
+Chef now supports ed25519 SSH key formats in `knife ssh` as well as `knife bootstrap` commands.
+
## New Resources
### archive_file resource
@@ -168,6 +201,7 @@ Using removed options will cause the command to fail.
| --winrm-ssl-verify-mode MODE | --winrm-no-verify-cert | [1] Mode is not accepted. When flag is present, SSL cert will not be verified. Same as original mode of 'verify\_none'. |
| --winrm-transport TRANSPORT | --winrm-ssl | [1] Use this flag if the target host is accepts WinRM connections over SSL.
| --winrm-user | --connection-user | `knife[:winrm_user]` config setting remains available.|
+| --winrm-session-timeout | --session-timeout | Now available for bootstrapping over SSH as well |
1. These flags do not have an automatic mapping of old flag -> new flag. The
new flag must be used.