[chef] Re: Leveraging node data for one-off commands


Chronological Thread 
  • From: Bryan McLellan < >
  • To:
  • Subject: [chef] Re: Leveraging node data for one-off commands
  • Date: Wed, 29 Dec 2010 14:28:28 -0800

On Wed, Dec 29, 2010 at 1:03 PM, Kenneth Stailey 
< >
 wrote:
> What's the best way to leverage chef data bags to launch something that 
> does a one-off command on select nodes?

I wrote up an answer as a blog post:
http://blog.loftninjas.org/2010/12/29/knife-one-liners/

If that doesn't answer your question, can you be more specific as to
what kind of conditional you're looking for? Since data bags aren't
tied to specific nodes, you'll need some way to connect the data bag
items your search returns with a list of nodes, which is going to be
dependent on your particular setup.

Bryan



Archive powered by MHonArc 2.6.16.

§