Skip to content

Commit

Permalink
add chef license to chef-client cmd parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
  • Loading branch information
Stromweld authored Feb 4, 2025
1 parent b8fbaff commit e842b75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/kitchen/provisioner/chef_infra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ def add_optional_chef_client_args!(args)
end

args << "--logfile #{config[:log_file]}" if config[:log_file]
# Added for Chef-Client 19+
args << "--chef-license-key=#{config[:chef_license_key]}" if config[:chef_license_key]

# these flags are chef-client local mode only and will not work
# on older versions of chef-client
Expand Down

0 comments on commit e842b75

Please sign in to comment.