From 589b1d212723e8dd79c0a0be32472cdd9a07ff42 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 6 Jul 2020 16:48:16 -0700 Subject: Rework macos_userdefaults resource This is a reboot of sorts on the macos_userdefaults resource to fix some fundamental flaws in the UX of the resource and how it gets state / sets the values. Signed-off-by: Tim Smith --- .../cookbooks/end_to_end/recipes/_macos_userdefaults.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'kitchen-tests') diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/_macos_userdefaults.rb b/kitchen-tests/cookbooks/end_to_end/recipes/_macos_userdefaults.rb index 6fcdd51d10..5d8fbdd543 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/_macos_userdefaults.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/_macos_userdefaults.rb @@ -11,16 +11,22 @@ mac_os_x_userdefaults "Disable fast user switching" do value 0 end -macos_userdefaults "enable macOS firewall" do +macos_userdefaults "Enable macOS firewall" do domain "/Library/Preferences/com.apple.alf" key "globalstate" value "1" type "int" end -macos_userdefaults "set dock size" do +macos_userdefaults "Set the dock size" do domain "com.apple.dock" type "integer" key "tilesize" value "20" end + +macos_userdefaults "value with space" do + domain "/Library/Preferences/ManagedInstalls" + key "LogFile" + value "/Library/Managed Installs/Logs/ManagedSoftwareUpdate2.log" +end -- cgit v1.2.1