diff options
author | Joseph Chilcote <chilcote+github@gmail.com> | 2019-05-23 12:11:30 -0700 |
---|---|---|
committer | Joseph Chilcote <chilcote+github@gmail.com> | 2019-05-23 12:11:30 -0700 |
commit | f14c4ab4bc32714f9a745d37380fff43c776207d (patch) | |
tree | 019306c5f81df4e9f80bbd345e9b5ce152bc44b8 | |
parent | f5de2c58ea3705a20a6784251a3cd8a58618f24d (diff) | |
download | chef-f14c4ab4bc32714f9a745d37380fff43c776207d.tar.gz |
add LaunchEvents to launchd resource
-rw-r--r-- | lib/chef/provider/launchd.rb | 1 | ||||
-rw-r--r-- | lib/chef/resource/launchd.rb | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/provider/launchd.rb b/lib/chef/provider/launchd.rb index 2530e6f779..880c5d9aa7 100644 --- a/lib/chef/provider/launchd.rb +++ b/lib/chef/provider/launchd.rb @@ -195,6 +195,7 @@ class Chef "inetd_compatibility" => "inetdCompatibility", "init_groups" => "InitGroups", "keep_alive" => "KeepAlive", + "launch_events" => "LaunchEvents", "launch_only_once" => "LaunchOnlyOnce", "limit_load_from_hosts" => "LimitLoadFromHosts", "limit_load_to_hosts" => "LimitLoadToHosts", diff --git a/lib/chef/resource/launchd.rb b/lib/chef/resource/launchd.rb index 331124bf13..d9d2af7edf 100644 --- a/lib/chef/resource/launchd.rb +++ b/lib/chef/resource/launchd.rb @@ -161,6 +161,9 @@ class Chef introduced: "12.14", description: "Keep a job running continuously (true) or allow demand and conditions on the node to determine if the job keeps running (false)." + property :launch_events, [ Hash ], + description: "Specify higher-level event types to be used as launch-on-demand event sources." + property :launch_only_once, [ TrueClass, FalseClass ], description: "Specify if a job can be run only one time. Set this value to true if a job cannot be restarted without a full machine reboot." |