[chef] Re: RE: Re: override argument


Chronological Thread 
  • From: Edward Valencia < >
  • To:
  • Subject: [chef] Re: RE: Re: override argument
  • Date: Tue, 17 Jun 2014 09:55:56 -0700

You want to use -o when you want to run something that is not assigned in the nodes run list or role. So say I have a base role, and I have a new recipe that I would like to test/run. I use chef-client -o "recipe[openssh]", this will run this recipe only once and then revert back to the nodes run list and will only run base.

-- 
Edward Valencia

On Tuesday, June 17, 2014 at 9:47 AM, Florian Hehlen wrote:

HI,

 

Thank you Indra. I am aware of the feature. I am just wondering if it’s safe to use –o or is it really only for testing.

 

Florian

 

 

Hi Flo,
 
        Ya, it gets run.
chef-client -o "recipe[something]"
 

the above command runs a chef-client with given runlist .

You can also refer this  by

"chef-client -h"    ---which shows a what are all parameters we can run with chef-client.

Thanks,
Indra

 

 



Hi,

 

What is the contract for the –o argument on chef-client? Can I expect that the only thing that changes between running ‘chef-client’ and ‘chef-client –o “recipe[something]”’, is the recipes that will get run?

 

Florian Hehlen

 

 

LEGAL DISCLAIMER
This communication and any attached documents are strictly confidential and/or legally privileged and they may not be used or disclosed by someone who is not a named recipient. If you have received this electronic communication in error please notify the sender by replying to this electronic communication inserting the word "misdirected" as the subject and delete this communication from your system.

 



LEGAL DISCLAIMER
This communication and any attached documents are strictly confidential and/or legally privileged and they may not be used or disclosed by someone who is not a named recipient. If you have received this electronic communication in error please notify the sender by replying to this electronic communication inserting the word "misdirected" as the subject and delete this communication from your system.





Archive powered by MHonArc 2.6.16.

§