[chef] Re: Chef report_handler that printout diff of files being changed


Chronological Thread 
  • From: Adam Jacob < >
  • To:
  • Cc:
  • Subject: [chef] Re: Chef report_handler that printout diff of files being changed
  • Date: Mon, 21 Mar 2011 07:22:16 -0700

I just pushed a branch to Github, CHEF-13-CHECK-METHODS. It's a first pass at implementing dry run mode, but for your purposes, you want to see this method:

https://github.com/adamhjk/chef/blob/CHEF-13-CHECK-METHODS/chef/lib/chef/resource.rb#L306

That would let you walk the resource collection in the report handler, call diff, and get the output.

Adam

On Mon, Mar 21, 2011 at 1:36 AM, < "> > wrote:
Hi
 
I want to write a chef report handler that executes diff and reports for each file, template what was modified by chef
 
Anyone has done something similar? What is best way to do it?
 
Thank a lot
 
 

Huy Le
Tecnología ING DIRECT
Administrador de sistema
Tel: +34 91 206 76 85

Por favor, no imprima este correo si no es necesario.

 


ADVERTENCIA LEGAL
Este mensaje se dirige exclusivamente a su destinatario y puede contener información confidencial y/o sujeta al secreto profesional, cuya divulgación no está permitida por la ley. Si no es vd. el destinatario de este mensaje o lo ha recibido por error, queda informado de que la lectura, utilización, divulgación y/o copia de este mensaje, cualquiera que fuera su finalidad, está prohibida por la ley. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción. El correo electrónico y las comunicaciones por medio de Internet no permiten asegurar la confidencialidad de los mensajes que se transmiten ni su integridad o correcta recepción. Si no consintiese la utilización del correo electrónico, le rogamos nos lo comunique de forma inmediata. ING DIRECT no asume ninguna responsabilidad por estas circunstancias.

LEGAL WARNING
This message is intended exclusively for its addressee and may contain information that is CONFIDENTIAL and/or protected by a professional privilege, protected from disclosure by law. If you are not the intended recipient or you have received it in error, you are hereby notified that any read, dissemination, disclosure and/or copy of this message, for any purpose, is strictly prohibited by law. If this message has been received in error, please immediately notify us vía e-mail and delete it. E-mail and Internet do not guarantee the confidentiality, nor the completeness or proper reception of the messages sent. Should you not agree to the use of e-mail, you are kindly requested to notify us immediately. ING DIRECT does not assume any liability for those circumstances.




--
Opscode, Inc.
Adam Jacob, Chief Product Officer
T: (206) 619-7151 E: " target="_blank">



Archive powered by MHonArc 2.6.16.

§