diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-08-26 16:14:04 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-08-26 16:19:51 -0700 |
commit | 391843e9590b285aed99daa3f823c399a8c100ff (patch) | |
tree | 35811a0f98ff1c2d80ef6fe2be60c55892bceaf7 | |
parent | 445f38f77eba9fa345c11198ad9883e78c8308ad (diff) | |
download | chef-391843e9590b285aed99daa3f823c399a8c100ff.tar.gz |
chef_client_launchd: reorder properties and fix log permissionslaunchd_cleanup
Use 750 as we do in the cron resource
Fix property order so we can diff things more easily
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/chef_client_launchd.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/chef/resource/chef_client_launchd.rb b/lib/chef/resource/chef_client_launchd.rb index 704fd47ad1..ea576690fa 100644 --- a/lib/chef/resource/chef_client_launchd.rb +++ b/lib/chef/resource/chef_client_launchd.rb @@ -75,16 +75,16 @@ class Chef default: "client.log" property :chef_binary_path, String, - default: "/opt/#{Chef::Dist::DIR_SUFFIX}/bin/#{Chef::Dist::CLIENT}", - description: "The path to the #{Chef::Dist::CLIENT} binary." + description: "The path to the #{Chef::Dist::CLIENT} binary.", + default: "/opt/#{Chef::Dist::DIR_SUFFIX}/bin/#{Chef::Dist::CLIENT}" property :daemon_options, Array, - default: lazy { [] }, - description: "An array of options to pass to the #{Chef::Dist::CLIENT} command." + description: "An array of options to pass to the #{Chef::Dist::CLIENT} command.", + default: lazy { [] } property :environment, Hash, - default: lazy { {} }, - description: "A Hash containing additional arbitrary environment variables under which the launchd daemon will be run in the form of `({'ENV_VARIABLE' => 'VALUE'})`." + description: "A Hash containing additional arbitrary environment variables under which the launchd daemon will be run in the form of `({'ENV_VARIABLE' => 'VALUE'})`.", + default: lazy { {} } property :nice, [Integer, String], description: "The process priority to run the #{Chef::Dist::CLIENT} process at. A value of -20 is the highest priority and 19 is the lowest priority.", @@ -99,7 +99,7 @@ class Chef unless ::Dir.exist?(new_resource.log_directory) directory new_resource.log_directory do owner new_resource.user - mode "0640" + mode "0750" recursive true end end |