[chef] Re: knife bootstrap http request too large issue


Chronological Thread 
  • From: Matthew Moretti < >
  • To:
  • Subject: [chef] Re: knife bootstrap http request too large issue
  • Date: Thu, 31 Oct 2013 11:57:29 -0400

Hey Manoj,

When you run knife bootstrap it uses one of the bootstrap templates here (by default "chef-full") If you need to customize some aspect of the bootstrap process -- for example the contents of your client.rb -- you can copy one of those templates with a custom name to ~/.chef/bootstrap/ or <chef_repo>/.chef/bootstrap/ and use the--distro flag to specify your new template name when you bootstrap.

You can see also how chef builds up the client.rb file here

--Matt Moretti



On Thu, Oct 31, 2013 at 2:24 AM, Manoj Thakkar < " target="_blank"> > wrote:
Hi,

when i run a knife bootstrap for a new client the chef client get installed and run for first time but i get this error  FATAL: Net::HTTPServerException: 413 "Request Entity Too Large"

i know the issue is with the ohai -- i hae to disable passwd in client.rb

Is there a way to fix it in the bootstrap itself as of now what i do it i run knife bootstrap  then i got to my client machine add the line 
Ohai::Config[:disabled_plugins] = ["passwd", "rackspace", "dmi", "dmi_common"]

in client.rb and then run chef-client again which fix the issue, 

but its painful to do it on every new node.

Thanks
Manoj





Archive powered by MHonArc 2.6.16.

§