Skip to content

A plugin for Chef::Knife which displays node metadata about the last chef run.

License

Notifications You must be signed in to change notification settings

jgoulah/knife-lastrun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

knife-lastrun

A plugin for Chef::Knife which displays node metadata about the last chef run.

Usage

Supply a node name to get metrics from the last chef run

% knife node lastrun jgoulah.vm.mydomain.com
Status                     success
Elapsed Time               74.198614
Start Time                 2012-02-22 00:39:04 +0000
End Time                   2012-02-22 00:40:18 +0000

Recipe                        Action                        Resource Type                 Resource
bigdata::default              run                           bash                          check for bashrc

Backtrace            none
Exception            none
Formatted Exception  none

Installation

Gem install

knife-lastrun is available on rubygems.org - if you have that source in your gemrc, you can simply use:

gem install knife-lastrun

Configure the Handler

in /etc/chef/client.rb

require "lastrun_update"
handler = LastRunUpdateHandler.new
report_handlers    << handler
exception_handlers << handler 

About

A plugin for Chef::Knife which displays node metadata about the last chef run.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages