- From: "Julian C. Dunn" <
>
- To:
- Subject: [chef] Re: put a custom client.rb at knife bootstrap
- Date: Wed, 20 Nov 2013 23:17:30 -0500
On Wed, Nov 20, 2013 at 3:45 PM, Manoj Thakkar
<
>
wrote:
>
is it possibel to put your changed client.rb at knife bootstrap, i know we
>
can write our own bootstrap but i could not find a good example of it,
>
i changed the the rb file under ~/.chef/bootstrap but looks like thats not
>
gettting picked up.
>
>
Am i missing something please help.
The client.rb is generated by the default boostrap procedure by
calling a method inside Chef called config_content:
https://github.com/opscode/chef/blob/master/lib/chef/knife/core/bootstrap_context.rb#L63
This is pulled into the bootstrap template as config_content:
https://github.com/opscode/chef/blob/master/lib/chef/knife/bootstrap/chef-full.erb#L62
If you don't like what it's doing, you can put your own content in the
section of your custom bootstrap template pertaining to the client.rb
generation and don't bother with config_content.
- Julian
--
[ Julian C. Dunn
<
>
* Sorry, I'm ]
[ WWW:
http://www.aquezada.com/staff/julian * only Web 1.0 ]
[
gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]
Archive powered by MHonArc 2.6.16.