1

I am a dev tasked with making some changes to the cookbooks owned by the devops team. We don't have access to knife or the chef server.

I tried to make some local changes to a recipe to try it out. But, when I run:

$ sudo chef-client --log_level debug

the local changes to the recipe are overriden by what's on the server.

Is there a way to quickly test minor changes to recipes without fetching them from the chef server?

Thank you.

user674669
  • 10,681
  • 15
  • 72
  • 105
  • Helpful answer: https://stackoverflow.com/questions/47932215/unable-to-find-cookbooks-in-local-mode-with-chef-client – user674669 May 13 '20 at 18:01

1 Answers1

2

Just add --skip-cookbook-sync parameter to your command:

$ sudo chef-client --log_level debug --skip-cookbook-sync
Draco Ater
  • 20,820
  • 8
  • 62
  • 86