When i'm uploading cookbook to server , getting error as No Berksfile or Berksfile.lock found at 'C:/Users/.........
Used command :
berks install
Any suggestions please ??
Thanks in advance ....
When i'm uploading cookbook to server , getting error as No Berksfile or Berksfile.lock found at 'C:/Users/.........
Used command :
berks install
Any suggestions please ??
Thanks in advance ....
Is the Berksfile or/and the Berksfile.lock included in the chefignore file?
How did you try to upload the cookbook?
More informations are required to help you.
Thanks for your response .
My workstation is windows .I'm trying with berks to upload the cookbook from powershell ..Before that i have used below Command used in powershell :
Berksfile and Berksfile.lock included in the chefignore file auomatically .
FYI..:
I have used a hosted chef server & my node is AWS machine
Any update on this issue?
I got the solution for this.
All you need to do is to generate the cookbook using --berks or -b, it will create a Berksfile while generating the cookbook for you.
Syntax will look like:- chef generate cookbook --berks
For reference sharing article link as well:- https://docs.chef.io/berkshelf.html