summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavin Taddeo <davin@chef.io>2020-06-15 12:06:11 -0400
committerDavin Taddeo <davin@chef.io>2020-06-15 12:06:11 -0400
commit6d0a315094ebec2d38736cf086b823a0b505abc0 (patch)
tree0704cf5ff7e53a3041ef3d69f9509b7167e8be3c /lib
parent80bdae1f837a33051df36c2c31f065f767af269f (diff)
downloadchef-6d0a315094ebec2d38736cf086b823a0b505abc0.tar.gz
add some appropriate bangs (!) and change the resource description in guidance with @tas50
Signed-off-by: Davin Taddeo <davin@chef.io>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/resource/windows_audit_policy.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/chef/resource/windows_audit_policy.rb b/lib/chef/resource/windows_audit_policy.rb
index 0b45fe4fd1..52aa09a5ab 100644
--- a/lib/chef/resource/windows_audit_policy.rb
+++ b/lib/chef/resource/windows_audit_policy.rb
@@ -84,7 +84,7 @@ class Chef
]
provides :windows_audit_policy
- description "The windows_audit_policy resource allows for configuring system and per-user Windows advanced audit policy settings."
+ description "Use the **windows_audit_policy** resource to configure system level and per-user Windows advanced audit policy settings."
examples <<~DOC
**Set Logon and Logoff policy to "Success and Failure"**:
@@ -184,7 +184,7 @@ class Chef
cmd += "/user:\"#{new_resource.include_user}\" /include " if new_resource.include_user
cmd += "/user:\"#{new_resource.exclude_user}\" /exclude " if new_resource.exclude_user
cmd += "/subcategory:\"#{subcategory}\" /success:#{s_val} /failure:#{f_val}"
- powershell_exec(cmd)
+ powershell_exec!(cmd)
end
end
end
@@ -193,7 +193,7 @@ class Chef
val = new_resource.crash_on_audit_fail ? "Enable" : "Disable"
converge_by "Configure Audit: CrashOnAuditFail to #{val}" do
cmd = "auditpol /set /option:CrashOnAuditFail /value:#{val}"
- powershell_exec(cmd)
+ powershell_exec!(cmd)
end
end
@@ -201,7 +201,7 @@ class Chef
val = new_resource.full_privilege_auditing ? "Enable" : "Disable"
converge_by "Configure Audit: FullPrivilegeAuditing to #{val}" do
cmd = "auditpol /set /option:FullPrivilegeAuditing /value:#{val}"
- powershell_exec(cmd)
+ powershell_exec!(cmd)
end
end
@@ -209,7 +209,7 @@ class Chef
val = new_resource.audit_base_directories ? "Enable" : "Disable"
converge_by "Configure Audit: AuditBaseDirectories to #{val}" do
cmd = "auditpol /set /option:AuditBaseDirectories /value:#{val}"
- powershell_exec(cmd)
+ powershell_exec!(cmd)
end
end
@@ -217,7 +217,7 @@ class Chef
val = new_resource.audit_base_objects ? "Enable" : "Disable"
converge_by "Configure Audit: AuditBaseObjects to #{val}" do
cmd = "auditpol /set /option:AuditBaseObjects /value:#{val}"
- powershell_exec(cmd)
+ powershell_exec!(cmd)
end
end
end