summaryrefslogtreecommitdiff
path: root/lib/chef/resource/windows_workgroup.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-10-29 22:42:27 -0700
committerTim Smith <tsmith@chef.io>2018-10-30 16:20:28 -0700
commitf331b1380fac1a60279c2abafb3b233c9a736360 (patch)
tree92b8c1ef2f1fd1dd379af13d109abc55d7b0c02e /lib/chef/resource/windows_workgroup.rb
parentdb1b8e3fbfc03fa689a70813b1db133fcd3c4b65 (diff)
downloadchef-f331b1380fac1a60279c2abafb3b233c9a736360.tar.gz
Skip more resources and set others to desired state falseresource_descriptions
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/windows_workgroup.rb')
-rw-r--r--lib/chef/resource/windows_workgroup.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/chef/resource/windows_workgroup.rb b/lib/chef/resource/windows_workgroup.rb
index 229afa2e8e..f8391a88cd 100644
--- a/lib/chef/resource/windows_workgroup.rb
+++ b/lib/chef/resource/windows_workgroup.rb
@@ -36,20 +36,22 @@ class Chef
name_property: true
property :user, String,
- description: "The local administrator user to use to change the workgroup."
+ description: "The local administrator user to use to change the workgroup.",
+ desired_state: false
property :password, String,
- description: "The password for the local administrator user."
+ description: "The password for the local administrator user.",
+ desired_state: false
property :reboot, Symbol,
equal_to: [:immediate, :delayed, :never, :request_reboot, :reboot_now],
validation_message: "The reboot property accepts :immediate (reboot as soon as the resource completes), :delayed (reboot once the Chef run completes), and :never (Don't reboot)",
description: "Controls the system reboot behavior post workgroup joining. Reboot immediately, after the Chef run completes, or never. Note that a reboot is necessary for changes to take effect.",
- default: :immediate
+ default: :immediate, desired_state: false
# define this again so we can default it to true. Otherwise failures print the password
property :sensitive, [TrueClass, FalseClass],
- default: true
+ default: true, desired_state: false
action :join do
description "Update the workgroup."