summaryrefslogtreecommitdiff
path: root/kitchen-tests/cookbooks
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-06-14 21:41:42 -0700
committerGitHub <noreply@github.com>2021-06-14 21:41:42 -0700
commit42f0d5433d43d1e72d45751645c4649c0a710a3e (patch)
treed519dbdd72bca235a17ce09f3336846cefe62819 /kitchen-tests/cookbooks
parent787206045a026d5317682042da74b5ac21b41822 (diff)
parente493d5149619f7c5537c45c3f7e723e232ecf9ec (diff)
downloadchef-42f0d5433d43d1e72d45751645c4649c0a710a3e.tar.gz
Merge pull request #11702 from chef/defender_resources
Add windows_defender and windows_defender_exclusion resources
Diffstat (limited to 'kitchen-tests/cookbooks')
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/_windows_defender.rb25
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/windows.rb1
2 files changed, 26 insertions, 0 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/_windows_defender.rb b/kitchen-tests/cookbooks/end_to_end/recipes/_windows_defender.rb
new file mode 100644
index 0000000000..90a0403ae3
--- /dev/null
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/_windows_defender.rb
@@ -0,0 +1,25 @@
+#
+# Cookbook:: end_to_end
+# Recipe:: _windows_defender
+#
+# Copyright:: Copyright (c) Chef Software Inc.
+#
+
+windows_defender "Configure Windows Defender" do
+ realtime_protection true
+ intrusion_protection_system true
+ lock_ui true
+ scan_archives true
+ scan_scripts true
+ scan_email true
+ scan_removable_drives true
+ scan_network_files false
+ scan_mapped_drives false
+ action :enable
+end
+
+windows_defender_exclusion "Exclude PNG files" do
+ extensions "png"
+ process_paths 'c:\\windows\\system32'
+ action :add
+end
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb b/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb
index f4cd74e3bf..20140ff7e0 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb
@@ -178,3 +178,4 @@ windows_certificate "c:/mordor/ca.cert.pem" do
end
include_recipe "::_windows_printer"
+include_recipe "::_windows_defender"