summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Chilcote <chilcote@users.noreply.github.com>2022-11-29 15:08:19 -0500
committerGitHub <noreply@github.com>2022-11-29 15:08:19 -0500
commit703953c7e6db6c57a230741cd960b1b914420300 (patch)
tree91133f263e9cb20c2c51bd8564763c1fcc7dea57
parent40cc0be671a43f92bbc29fdd8932bd7871f6c30b (diff)
downloadchef-703953c7e6db6c57a230741cd960b1b914420300.tar.gz
New launchd key for associating a bundle identifier with Login Items (#13288)
Example of what it will look like in a plist ```xml <key>AssociatedBundleIdentifiers</key> <array> <string>bundle.id.of.app.signed.by.same.team</string> </array> ``` Apple [docs](https://developer.apple.com/documentation/servicemanagement/updating_helper_executables_from_earlier_versions_of_macos) Signed-off-by: Joseph Chilcote <chilcote@gmail.com>
-rw-r--r--lib/chef/provider/launchd.rb1
-rw-r--r--lib/chef/resource/launchd.rb3
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/provider/launchd.rb b/lib/chef/provider/launchd.rb
index a737cd08de..36805c8129 100644
--- a/lib/chef/provider/launchd.rb
+++ b/lib/chef/provider/launchd.rb
@@ -153,6 +153,7 @@ class Chef
"program" => "Program",
"program_arguments" => "ProgramArguments",
"abandon_process_group" => "AbandonProcessGroup",
+ "associated_bundle_identifiers" => "AssociatedBundleIdentifiers",
"debug" => "Debug",
"disabled" => "Disabled",
"enable_globbing" => "EnableGlobbing",
diff --git a/lib/chef/resource/launchd.rb b/lib/chef/resource/launchd.rb
index cc607eedce..dbd5062403 100644
--- a/lib/chef/resource/launchd.rb
+++ b/lib/chef/resource/launchd.rb
@@ -129,6 +129,9 @@ class Chef
property :abandon_process_group, [ TrueClass, FalseClass ],
description: "If a job dies, all remaining processes with the same process ID may be kept running. Set to true to kill all remaining processes."
+ property :associated_bundle_identifiers, Hash,
+ description: "This optional key indicates which bundles the Login Items Added by Apps panel associates with the helper executable."
+
property :debug, [ TrueClass, FalseClass ],
description: "Sets the log mask to `LOG_DEBUG` for this job."