[chef] RE: Re: Re: Enforce certain recipe in run_list


Chronological Thread 
  • From: Phil Oliva < >
  • To: " " < >
  • Subject: [chef] RE: Re: Re: Enforce certain recipe in run_list
  • Date: Wed, 24 Sep 2014 17:20:07 +0000
  • Accept-language: en-US, en-CA

Yes, I am familiar with the –j option. We use ‘chef-client –j http://fakefile.json’ quite often to specify vm instance attributes. Just a co-worker suggested to me that you could get specify something on chef-server to enforce ‘extra’ recipes to be run for all nodes but couldn’t find any documentation related to this claim. Just thought I’d ask.

 

From: Scott Hain [mailto:
Sent: Wednesday, September 24, 2014 1:12 PM
To:
Subject: [chef] Re: Re: Enforce certain recipe in run_list

 

I'm not sure if this will fit your use case exactly, but during the bootstrap itself you can specific a specific run list with a json file using knife bootstrap with the -j flag as documented here: http://docs.getchef.com/install_bootstrap.html

 

If you are looking for 'extra' recipes not on the runlist, Noah is correct.

 

On Wed, Sep 24, 2014 at 10:08 AM, Noah Kantrowitz < " target="_blank"> > wrote:

No, this is not a feature available in Chef. You can rig it up in any number of ways (cron job that adds a specific role, build scripts to enforce it, etc) but Chef itself will not.

--Noah


On Sep 24, 2014, at 10:03 AM, Phil Oliva < "> > wrote:

> Hi all,
>
> Is there a way to enforce all nodes that bootstrap with chef-client to certain chef-server run extra recipe(s) on top of their specified run list? Basically want to create a base cookbook for my organization and ensure all managed bootstrap nodes have run certain recipes from this cookbook.
>
> Phil Oliva



 

--

Scott Hain — Software Development Engineer

360.360.7433 – " target="_blank">  – my: Linkedin  Twitter

CHEF

GETCHEF.COM

TM

getchef.com   Blog   Facebook   Twitter   Youtube

 




Archive powered by MHonArc 2.6.16.

§