From d6dd2cb7dc81f10e90e96d65b937dd1f1107fd5b Mon Sep 17 00:00:00 2001 From: Jacob Zaval Date: Thu, 13 Jun 2024 11:34:44 -0700 Subject: [PATCH 1/2] prevent MiniBuddy from running after update ("reason 5") --- metadata.rb | 2 +- resources/macos_user.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/metadata.rb b/metadata.rb index 070cc09..0070d3e 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ maintainer_email 'chef@microsoft.com' license 'MIT' description 'Resources for configuring and provisioning macOS' chef_version '>= 16.0' -version '6.0.1' +version '6.0.2' source_url 'https://github.com/Microsoft/macos-cookbook' issues_url 'https://github.com/Microsoft/macos-cookbook/issues' diff --git a/resources/macos_user.rb b/resources/macos_user.rb index f3b4c73..19f91b7 100644 --- a/resources/macos_user.rb +++ b/resources/macos_user.rb @@ -47,6 +47,7 @@ action_class do 'LastPrivacyBundleVersion' => '2', 'LastSeenBuddyBuildVersion' => node['platform_build'], 'LastSeenSiriProductVersion' => node['platform_version'], + 'MiniBuddyLaunchReason' => '0', } end From 137761e5251f3e0f21384c85cd89a4a74384c5e8 Mon Sep 17 00:00:00 2001 From: Jacob Zaval Date: Thu, 13 Jun 2024 11:57:18 -0700 Subject: [PATCH 2/2] add new keys --- resources/macos_user.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/macos_user.rb b/resources/macos_user.rb index 19f91b7..8b8a6fe 100644 --- a/resources/macos_user.rb +++ b/resources/macos_user.rb @@ -41,11 +41,13 @@ action_class do 'DidSeeAccessibility' => true, 'DidSeeAppearanceSetup' => true, 'DidSeeScreenTime' => true, + 'DidSeeiCloudLoginForStorageServices' => true, 'LastSeenCloudProductVersion' => node['platform_version'], 'LastPreLoginTasksPerformedVersion' => node['platform_version'], 'LastPreLoginTasksPerformedBuild' => node['platform_build'], 'LastPrivacyBundleVersion' => '2', 'LastSeenBuddyBuildVersion' => node['platform_build'], + 'LastSeenDiagnosticsProductVersion' => node['platform_version'], 'LastSeenSiriProductVersion' => node['platform_version'], 'MiniBuddyLaunchReason' => '0', }