[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.4-89-gcbbd363

James Turnbull james at lovedthanlost.net
Tue May 18 09:03:37 UTC 2010


The following commit has been merged in the upstream branch:
commit ad4f94adc4393e0ee3b1aca4bf7a1e8afc8b3ad8
Author: Mark Plaksin <happy at usg.edu>
Date:   Fri Jan 22 15:20:58 2010 -0500

    Add version number to puppetlast display.
    
    Move "cache expired" to the end of puppetlast lines.
    
    This way the number of seconds and puppet version are always in the same column.

diff --git a/ext/puppetlast b/ext/puppetlast
index 2dc4cd6..ac63965 100755
--- a/ext/puppetlast
+++ b/ext/puppetlast
@@ -12,5 +12,5 @@ Puppet[:name] = "puppetmasterd"
 Puppet::Node::Facts.terminus_class = :yaml
 
 Puppet::Node::Facts.search("*").sort { |a,b| a.name <=> b.name }.each do |node|
-  puts "#{node.name} #{node.expired? ? 'cached expired, ' : ''}checked in #{((Time.now - Time.parse(node.values[:_timestamp].to_s)) / 60).floor} minutes ago"
+  puts "#{node.name} checked in #{((Time.now - Time.parse(node.values[:_timestamp].to_s)) / 60).floor} minutes ago.  Version #{node.values['puppetversion']}#{node.expired? ? '  Cached expired.' : ''}"
 end

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list