Keep run list of node as source code in VCS


#1

------_=_NextPart_001_01CC5BDF.D6188256
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Anyone know what is a best way to keep run_list of node as source code
in VCS, so it will be easily recreate chef server scratch from source
code ?

=20


ADVERTENCIA LEGAL
Este mensaje se dirige exclusivamente a su destinatario y puede contener
informaci=F3n confidencial y/o sujeta al secreto profesional, cuya
divulgaci=F3n no est=E1 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=F3n, divulgaci=F3n y/o copia de este mensaje, cualquiera que fuer=
a su
finalidad, est=E1 prohibida por la ley. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma v=EDa y
proceda a su destrucci=F3n. El correo electr=F3nico y las comunicaciones por
medio de Internet no permiten asegurar la confidencialidad de los mensajes
que se transmiten ni su integridad o correcta recepci=F3n. Si no consintiese
la utilizaci=F3n del correo electr=F3nico, le rogamos nos lo comunique de f=
orma
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=EDa e-mail and delete it. E-mail a=
nd
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.

------_=_NextPart_001_01CC5BDF.D6188256
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Anyone know what is a best way to keep run_list of node as source code in = VCS, so it will be easily recreate chef server scratch from source code ?

 


ADVERTENCIA LEGAL
Este mensaje se dirige exclusivamente a su=20 destinatario y puede contener informaci=F3n confidencial y/o sujeta al secr= eto=20 profesional, cuya divulgaci=F3n no est=E1 permitida por la ley. Si no es vd= . el=20 destinatario de este mensaje o lo ha recibido por error, queda informado de= que=20 la lectura, utilizaci=F3n, divulgaci=F3n y/o copia de este mensaje, cualqui= era que=20 fuera su finalidad, est=E1 prohibida por la ley. Si ha recibido este mensaj= e por=20 error, le rogamos que nos lo comunique inmediatamente por esta misma v=EDa = y=20 proceda a su destrucci=F3n. El correo electr=F3nico y las comunicaciones po= r medio=20 de Internet no permiten asegurar la confidencialidad de los mensajes que se= =20 transmiten ni su integridad o correcta recepci=F3n. Si no consintiese la=20 utilizaci=F3n del correo electr=F3nico, le rogamos nos lo comunique de form= a=20 inmediata. ING DIRECT no asume ninguna responsabilidad por estas=20 circunstancias.=20
LEGAL WARNING
This message is intended exclusively for its addr= essee=20 and may contain information that is CONFIDENTIAL and/or protected by a=20 professional privilege, protected from disclosure by law. If you are not th= e=20 intended recipient or you have received it in error, you are hereby notifie= d=20 that any read, dissemination, disclosure and/or copy of this message, for a= ny=20 purpose, is strictly prohibited by law. If this message has been received i= n=20 error, please immediately notify us v=EDa e-mail and delete it. E-mail and= =20 Internet do not guarantee the confidentiality, nor the completeness or prop= er=20 reception of the messages sent. Should you not agree to the use of e-mail, = you=20 are kindly requested to notify us immediately. ING DIRECT does not assume a= ny=20 liability for those circumstances.


------_=_NextPart_001_01CC5BDF.D6188256–


#2

generally we keep all the nodes run list inside nodes directory of chef
repo. And apply them using “knife node from file nodes/nodename.json”. We
use a custom knife plugin to dump existing nodes run list (source: “
https://github.com/ranjibd/knife-plugins/blob/master/dumper.rb”)
regards
ranjib

On Tue, Aug 16, 2011 at 12:13 PM, le.huy@ingdirect.es wrote:

Anyone know what is a best way to keep run_list of node as source code in
VCS, so it will be easily recreate chef server scratch from source code ?*




  • 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.


#3

Its "knife node from file -F " . But the problem is that this will
dump everything that a node has (including Ohai parameters and host info )
and not just what you see when you do a "knife node edit < > " . This plugin
however does that for you.

If you modify the .json using the plugin and then want to do a "knife node
from file <file.json> " then you have to add this line at the end of the
file:
“json_class” : “Chef::Node”

On Tue, Aug 16, 2011 at 12:42 PM, Ranjib Dey ranjibd@thoughtworks.comwrote:

generally we keep all the nodes run list inside nodes directory of chef
repo. And apply them using “knife node from file nodes/nodename.json”. We
use a custom knife plugin to dump existing nodes run list (source: “
https://github.com/ranjibd/knife-plugins/blob/master/dumper.rb”)
regards
ranjib

On Tue, Aug 16, 2011 at 12:13 PM, le.huy@ingdirect.es wrote:

Anyone know what is a best way to keep run_list of node as source code in
VCS, so it will be easily recreate chef server scratch from source code ?




  • 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.


#4

You may want to take a look at Spiceweasel, you just described the
exact use case for it.

Thanks,
Matt Ray
Senior Technical Evangelist | Opscode Inc.
matt@opscode.com | (512) 731-2218
Twitter, IRC, GitHub: mattray

On Tue, Aug 16, 2011 at 1:43 AM, le.huy@ingdirect.es wrote:

Anyone know what is a best way to keep run_list of node as source code in
VCS, so it will be easily recreate chef server scratch from source code ?


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.