Issue #1188 has been updated by digant.

How does this work when you have multiple puppetmasters?  I would imagine this 
feature is limited to "when something last checked into a particular 
puppetmaster."  
----------------------------------------
Feature #1188: 'puppetwhen' - list when puppet was last successfully run for 
each node
http://reductivelabs.com/redmine/issues/show/1188

Author: nigel
Status: Closed
Priority: Low
Assigned to: luke
Category: executables
Target version: 0.24.4
Keywords: 
Complexity: Trivial
Patch: Code
Affected version: 0.24.4


There's a little script that Martyn Smith wrote (and I hacked on) to list for 
each node when puppet last ran.

Example output:

<pre>
[EMAIL PROTECTED]:~$ sudo puppetwhen
   10 minutes ago: dnsadmin-master.wgtn.cat-it.co.nz
   13 minutes ago: myportfolio-school-nz.wgtn.cat-it.co.nz
   13 minutes ago: myportfolio-ac-nz.wgtn.cat-it.co.nz
   14 minutes ago: mysql.wgtn.cat-it.co.nz
   14 minutes ago: pg81.wgtn.cat-it.co.nz
   15 minutes ago: dnsadmin-slave.wgtn.cat-it.co.nz
   16 minutes ago: dnsadmin-frontend.wgtn.cat-it.co.nz
   16 minutes ago: dnsadmin-database.wgtn.cat-it.co.nz
   19 minutes ago: dnsadmin-dr.wgtn.cat-it.co.nz
   26 minutes ago: mahara-trunk.wgtn.cat-it.co.nz
   26 minutes ago: mahara-1-0-stable.wgtn.cat-it.co.nz
26985 minutes ago: mahara-0910-pgsql.wgtn.cat-it.co.nz
26999 minutes ago: mahara-10-mysql.wgtn.cat-it.co.nz
27011 minutes ago: mahara-10-pgsql.wgtn.cat-it.co.nz
35681 minutes ago: mahara-dh-maketest.wgtn.cat-it.co.nz
35686 minutes ago: mahara-0-9-stable.wgtn.cat-it.co.nz
</pre>

It's written in perl and uses a hardcoded path to the vardir. Suggestions from 
IRC include rewriting it in ruby so the vardir is easier to find.


----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to