[chef] Re: Re: chef-client command line argument for cookbook/recipe?


Chronological Thread 
  • From: AJ Christensen < >
  • To:
  • Cc:
  • Subject: [chef] Re: Re: chef-client command line argument for cookbook/recipe?
  • Date: Wed, 19 Dec 2012 12:03:17 +1300

Yeah, use the override run list functionality on the CLI:

(from --help)

    -o RunlistItem,RunlistItem...,   Replace current run list with specified items
        --override-runlist

Cheers,

AJ


On 19 December 2012 10:59, Matthew Sims < " target="_blank"> > wrote:

>
> Is there a way for chef-client to call a cookbook or recipe via the
> command line without the need for a JSON?
>
> I'm looking to have Chef be the source of a file. Some times a manual
> reset of this file is required.
>
> I'm looking to write a script that would simply make a chef-client call to
> a special recipe that would pull down the original.
>
> I wasn't looking to have this automated in any run list, just have it
> handy when we need it.
>
>
>

Sorry for the double post. First time it said I was denied.





Archive powered by MHonArc 2.6.16.

§