From 391843e9590b285aed99daa3f823c399a8c100ff Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Wed, 26 Aug 2020 16:14:04 -0700 Subject: chef_client_launchd: reorder properties and fix log permissions Use 750 as we do in the cron resource Fix property order so we can diff things more easily Signed-off-by: Tim Smith --- lib/chef/resource/chef_client_launchd.rb | 14 +++++++------- 1 file 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 -- cgit v1.2.1