diff options
author | Tim Smith <tsmith@chef.io> | 2021-06-14 21:41:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-14 21:41:42 -0700 |
commit | 42f0d5433d43d1e72d45751645c4649c0a710a3e (patch) | |
tree | d519dbdd72bca235a17ce09f3336846cefe62819 /kitchen-tests/cookbooks | |
parent | 787206045a026d5317682042da74b5ac21b41822 (diff) | |
parent | e493d5149619f7c5537c45c3f7e723e232ecf9ec (diff) | |
download | chef-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.rb | 25 | ||||
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/recipes/windows.rb | 1 |
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" |