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


Chronological Thread 
  • From: Ranjib Dey < >
  • To: " " < >, Daniel DeLeo < >
  • Subject: [chef] Re: Re: Re: Enforce certain recipe in run_list
  • Date: Wed, 24 Sep 2014 13:41:29 -0700

I think you can specify a run list using environments, but only roles will be catered
https://github.com/opscode/chef/blob/master/lib/chef/run_list/run_list_expansion.rb#L151

@dan am I right here?



On Wed, Sep 24, 2014 at 1:35 PM, Ranjib Dey < " target="_blank"> > wrote:
yeah., but as noah mentioned, and i just confirmed with pry., i dont see a run_list on the Chef::Environment objects. neither i can find any reference on lib/chef/environment.rb. But this is the same link i had read (long time before), may be this is wrong documentation, or a deprecated feature..

On Wed, Sep 24, 2014 at 1:20 PM, Aimelyne Mochiron < " target="_blank"> > wrote:
Roles can declare environment-specific run lists though: https://docs.getchef.com/essentials_roles.html#set-per-environment-run-lists

Maybe this is what Ranjib meant?

am

On 24 Sep 2014, at 22:27, Lamont Granquist < " target="_blank"> > wrote:

>
> Probably a good one for an RFC and/or discussion at the Chef Summit.
>
> On Wed Sep 24 11:42:05 2014, Olivier Bazoud wrote:
>> This could be an interesting feature ;)
>>
>> Le 24 sept. 2014 19:29, "Noah Kantrowitz" < " target="_blank">
>> <mailto: " target="_blank"> >> a écrit :
>>
>>
>>    On Sep 24, 2014, at 10:25 AM, Ranjib Dey < " target="_blank">
>>    <mailto: " target="_blank"> >> wrote:
>>
>>    > You can use environment run list to enforce certain roles or
>>    recipes across all nodes from that environment. You have to
>>    specify these across all environments.
>>    > Base roles are more popular for this use case :-)
>>    >
>>
>>    No, environments do not have run lists. Also the default
>>    "_default" environment is immutable anyway.
>>
>>    --Noah
>>
>
>






Archive powered by MHonArc 2.6.16.

§