[chef] Re: Add Client to Chef Server Immediately?


Chronological Thread 
  • From: Douglas Garstang < >
  • To:
  • Subject: [chef] Re: Add Client to Chef Server Immediately?
  • Date: Tue, 12 Aug 2014 14:40:42 -0700

Lamont,

Tried that. Waited a couple of minutes, and the nothing returned by my knife search. Run chef-client, and the knife search command does return data for the node.

I think there was more options after the -z.

Doug.


On Tue, Aug 12, 2014 at 2:37 PM, Lamont Granquist < " target="_blank"> > wrote:
On Tue Aug 12 14:31:00 2014, Douglas Garstang wrote:
Anyone,

I remember seeing a trick recently, where a certain invocation of the
chef-client (with -z I believe) would allow a new node to report the
data it normally sends to a chef server at the end of it's run. This
would allow cookbooks that use chef search to work the first time.
Anyone know what it is?

Douglas.


chef-client -z spins up a chef-zero server and points the client at it:

https://gist.github.com/lamont-granquist/b559886607a72515f262




--
Regards,

Douglas Garstang
http://www.linkedin.com/in/garstang
Email: ">
Cell: +1-805-340-5627



Archive powered by MHonArc 2.6.16.

§