- From: Jeff Blaine <
>
- To:
- Subject: [chef] Re: Re: Re: Re: node status tracking time stamp
- Date: Tue, 04 Feb 2014 10:43:06 -0500
On 2/3/2014 9:07 PM, Daniel DeLeo wrote:
>
On Monday, February 3, 2014 at 9:51 AM, Jasna Benčić wrote:
>
>> If you’re talking about the “classic” status page which just lists
>
>> the last time chef ran (and has the same info as `knife status`),
>
>> that timestamp comes from ohai as the “ohai_time” attribute, which
>
>> you can observe during a chef run with `node[“ohai_time”]`.
>
>> Source:
>
>> https://github.com/opscode/ohai/blob/master/lib/ohai/plugins/ohai_time.rb
>
>
>
> Exactly that
There is a handler as part of knife-lastrun. We started using
this handler and love it.
https://github.com/jgoulah/knife-lastrun
Direct link to the handler's code so you can see what it stores
on each node object:
https://github.com/jgoulah/knife-lastrun/blob/master/lib/lastrun_update.rb
Super. A++++. Would install again.
Jeff Blaine
>
>> If you’re talking about the new reporting data on preview.opscode.com
>
>> <http://preview.opscode.com> (can also be installed in on-premises
>
>> Enterprise Chef), that data is collected by the resource
>
>> reporter:
>
>> https://github.com/opscode/chef/blob/master/lib/chef/resource_reporter.rb
>
>> I haven’t personally tried it, but if you want an open source option
>
>> for reporting what chef has changed on a system, you could try
>
>> this: https://github.com/theforeman/chef-handler-foreman
Archive powered by MHonArc 2.6.16.