summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-06-17 12:36:42 -0700
committerGitHub <noreply@github.com>2020-06-17 12:36:42 -0700
commit053166dd90cb0d92edea2c1e6f5a9268e8b0a60b (patch)
tree25906ff4022c4846f1e6652ccd5b090e64fd856e
parente5c34489437ec35cce8fbab26f0cc1e30b790941 (diff)
parente5d508d7db4ed383b5b314275d4ba01480bb8fad (diff)
downloadchef-053166dd90cb0d92edea2c1e6f5a9268e8b0a60b.tar.gz
Merge pull request #10012 from chef-davin/master
Update the list of allowed policies for the windows_security_policy resource
-rw-r--r--lib/chef/resource/windows_security_policy.rb32
1 files changed, 17 insertions, 15 deletions
diff --git a/lib/chef/resource/windows_security_policy.rb b/lib/chef/resource/windows_security_policy.rb
index ffcbb8d139..652ef74f98 100644
--- a/lib/chef/resource/windows_security_policy.rb
+++ b/lib/chef/resource/windows_security_policy.rb
@@ -25,21 +25,23 @@ class Chef
# The valid policy_names options found here
# https://github.com/ChrisAWalker/cSecurityOptions under 'AccountSettings'
- policy_names = %w{MinimumPasswordAge
- MaximumPasswordAge
- MinimumPasswordLength
- PasswordComplexity
- PasswordHistorySize
- LockoutBadCount
- RequireLogonToChangePassword
- ForceLogoffWhenHourExpire
- NewAdministratorName
- NewGuestName
- ClearTextPassword
- LSAAnonymousNameLookup
- EnableAdminAccount
- EnableGuestAccount
- }
+ policy_names = %w{LockoutDuration
+ MaximumPasswordAge
+ MinimumPasswordAge
+ MinimumPasswordLength
+ PasswordComplexity
+ PasswordHistorySize
+ LockoutBadCount
+ ResetLockoutCount
+ RequireLogonToChangePassword
+ ForceLogoffWhenHourExpire
+ NewAdministratorName
+ NewGuestName
+ ClearTextPassword
+ LSAAnonymousNameLookup
+ EnableAdminAccount
+ EnableGuestAccount
+ }
description "Use the **windows_security_policy** resource to set a security policy on the Microsoft Windows platform."
introduced "16.0"