summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <jmccrae@chef.io>2021-05-11 12:29:57 -0700
committerJohn McCrae <jmccrae@chef.io>2021-05-11 12:29:57 -0700
commit2f925c3c4f8cc21983ca0a1e7feaa62b51cfa476 (patch)
tree1b41b1fd36509a2f60f1575d5c0e0f2f61b492a2
parent7b304cd56c2b5659bc518d95dcba1a591c36ee40 (diff)
downloadchef-2f925c3c4f8cc21983ca0a1e7feaa62b51cfa476.tar.gz
Corrected errors from refactoring in the hostname file and corrected a spelling error in the release notes
Signed-off-by: John McCrae <jmccrae@chef.io>
-rw-r--r--RELEASE_NOTES.md2
-rw-r--r--lib/chef/resource/hostname.rb7
2 files changed, 8 insertions, 1 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 2308d12acf..faeba06a14 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -71,7 +71,7 @@ Chef Infra Client 17.1 is once again smaller than previous releases thanks to re
### RHEL 8 Packages
-We imporved our RHEL 8 packages with additional RHEL 8 optimizations and EL8 in the filename.
+We improved our RHEL 8 packages with additional RHEL 8 optimizations and EL8 in the filename.
## What's New in 17.0
diff --git a/lib/chef/resource/hostname.rb b/lib/chef/resource/hostname.rb
index c57173024e..04ab1f0b25 100644
--- a/lib/chef/resource/hostname.rb
+++ b/lib/chef/resource/hostname.rb
@@ -71,6 +71,13 @@ class Chef
description: "Determines whether or not Windows should be reboot after changing the hostname, as this is required for the change to take effect.",
default: true
+ property :domain_user, String,
+ description: "A domain account specified in the form of DOMAIN\\user used when renaming a domain-joined device"
+
+ property :domain_password, String,
+ description: "The password to accompany the domain_user parameter",
+ sensitive: true
+
action_class do
def append_replacing_matching_lines(path, regex, string)
text = IO.read(path).split("\n")