http://tickets.opscode.com/browse/CHEF-3479 has the fix in a pull request for Chef 11.
Thanks,
Matt Ray
Senior Technical Evangelist | Opscode Inc.
| (512) 731-2218
Twitter, IRC, GitHub: mattray
From: Matt Ray
Sent: Saturday, September 22, 2012 9:15 AM To: Subject: [chef] RE: Re: RE: Re: How to know the developer name who ran the knife cmd?
Yes, you'd need to modify your local chef-full.erb and put it in your .chef/bootstrap/ directory for your repo. If it seems worthwhile, I could put it into a pull request and see about getting it merged into the other default bootstraps that come with Chef.
Here's another update to it:
(
cat <<'EOP'
<%= { "run_list" => @run_list, "bootstrap" => { "client" => Chef::Config[:client_key].split('/').last, "time" => Time.now.to_i , "user" => ENV['USER']} }.to_json %>
EOP
) > /etc/chef/first-boot.json
produces
$ knife node show ubuntu1-1204.vm -a bootstrap
bootstrap:
client: mray.pem
time: 1348323159
user: mray
Thanks,
Matt Ray
Senior Technical Evangelist | Opscode Inc.
| (512) 731-2218
Twitter, IRC, GitHub: mattray
From: Sachin Sagar Rai
Sent: Saturday, September 22, 2012 6:38 AM To: Subject: [chef] Re: RE: Re: How to know the developer name who ran the knife cmd? @matt, liked the idea.
But wondering where to put it coz now the chef-client is installed via omnibus, not the bootstrap template from .chef/bootstrap/file1?
Do I've to first dwnld the shell script file that ships with omnibus and modify it and use it instead of automatically fetched one?
-------------------------------------------
@millisami
~ Sachin Sagar Rai Ruby on Rails Developer http://tfm.com.np http://nepalonrails.tumblr.com Sent with Sparrow
On Saturday, September 22, 2012 at 10:20 AM, Matt Ray wrote:
|
Archive powered by MHonArc 2.6.16.