[chef] Confused about env_run_lists


Chronological Thread 
  • From: Jeppe Nejsum Madsen < >
  • To: " " < >
  • Subject: [chef] Confused about env_run_lists
  • Date: Mon, 24 Jun 2013 11:23:18 +0200

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.

§