[chef] couchdb node document revision timestamp equal to ohai_time?


Chronological Thread 
  • From: Sergio Rubio < >
  • To:
  • Subject: [chef] couchdb node document revision timestamp equal to ohai_time?
  • Date: Fri, 2 Oct 2009 14:06:00 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=J9L3Bmioax5uwgGdN3GWDuS3OyQ2V4XAVPCi1sAchwBi21cOIg+eKUbkiG4irbGyga DNqXdy9PwVEX5CaIBJaoSYUSwIFu+S+m6i0ze+1uZ+T35ZWhXxaR6wrCLPxDfMlV+jH0 sLZUlWEkdlHGSlzrxvfc7AbU08Zkg7mDyd5cs=

Hi guys!

I'm adding a new script to chef_knives that prints out the document
revisions of a node (i.e. previous node states). Something along this
lines:

$ chef_node_revisions -n xen10

[ xen10.example.com ]

REVISION                      DATE
2103-3352627820       20095110/02/09-13:51:53
2100-3611993058       20092110/02/09-13:21:32
1992-1504167919       20093910/01/09-18:39:35
1989-2703343007       20090910/01/09-18:09:13
1986-2968622156       20093810/01/09-17:38:50
1983-664772315        20091710/01/09-17:17:34
1980-2756857044       20094710/01/09-16:47:07

The first column is the revision number added by couchdb, the second
is the ohai_time from that document.

Then you can:

$ chef_node_revisions -n xen10 -r 1833-2873490029

and print out all the attributes from the node at that time.

The question is:

Is that right? I mean, does the ohai_time matches the document
revision timestamp? (an approx at least)

Thanks!

Cheers,
Sergio.



Archive powered by MHonArc 2.6.16.

§