[chef] Re: Confused about env_run_lists


Chronological Thread 
  • From: Ranjib Dey < >
  • To:
  • Subject: [chef] Re: Confused about env_run_lists
  • Date: Mon, 24 Jun 2013 10:21:20 -0700

have you tested this? im not sure if this will work on environment definitions. Definitely works for roles, and inside role definition.  

On Jun 24, 2013 2:23 AM, "Jeppe Nejsum Madsen" < " target="_blank"> > wrote:

Ohai,

Reading up on environments and env_run_lists I feel like I'm missing something.

If I need to specify a default recipe to run on e.g. the preprod env:

preprod.rb:
env_run_lists "preprod" => ["recipe[myrecipe]"],
                       "_default" => []

What happens if I also specify something (by mistake) in e.g. prod:
preprod.rb:
env_run_lists "preprod" => ["recipe[myotherrecipe]"],
                       "_default" => []

Basically I don't understand why I need to specify the environment again when I'm already in e.g. the preprod.rb env file?

In addition what will the recipe order be in the final run_list?

/Jeppe



Archive powered by MHonArc 2.6.16.

§