While running chef client command i am getting a warning - No config file found

139 Views Asked by At

While running chef client command chef-client -zr "recipe[test-cookbook::test-recipe]" I am getting the below warning.

[2023-08-27T10:00:19+00:00] WARN: No config file found or specified on command line. Using command line options instead.
Chef Infra Client, version 18.2.7
Patents: https://www.chef.io/patents
Infra Phase starting
Resolving cookbooks for run list: ["test-cookbook::test-recipe"]
Synchronizing cookbooks:
  - test-cookbook (0.1.0)
Installing cookbook gem dependencies:
Compiling cookbooks...
Loading Chef InSpec profile files:
Loading Chef InSpec input files:
Loading Chef InSpec waiver files:
Converging 0 resources

Running handlers:
Running handlers complete
Infra Phase complete, 0/0 resources updated in 02 seconds

PS: I have updated the code correctly in recipe

The recipe is as below (syntax is OK as well):

file '/myfile' do
  content 'Welcome to Technical Guftgu'
  action :create
end
0

There are 0 best solutions below