[chef] Re: Re: Re: Running knife ssh question


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Re: Re: Running knife ssh question
  • Date: Thu, 14 Feb 2013 10:00:49 -0800


On Thursday, February 14, 2013 at 9:55 AM, JJ Asghar wrote:

Nothing, but incase I wanted to exclude them.

I have a bunch of machines with the role, but I don't want to run something on every single machine.  Take for instance I have a bunch of web servers and I needed to delete something on every one except web03 and web05.  If I have 20 odd machines doing knife ssh –m "web01 web02 web04 web06 web07…web20" "rm ~/somefile" that would annoying right? Knife ssh "role:web –exclude web03 web05" "rm ~/somefile" would be so much better?

Thoughts?
If the machines are actually different for some reason, then presumably there should be a difference in the searchable data, so you can just modify your search query to look for a particular attribute value that distinguishes them.
 

Best Regards,
JJ Asghar



-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§