[chef] env_run_list vs run_list


Chronological Thread 
  • From: Sachin Sagar Rai < >
  • To: chef < >
  • Subject: [chef] env_run_list vs run_list
  • Date: Sat, 21 Apr 2012 01:42:32 +0545

I'm confused regarding the `env_run_lists` in the following `roles/base.rb`. And this didn't http://wiki.opscode.com/display/chef/Roles#Roles-envrunlists make me clear enough.

    name "base"
    description "Base role applied to all nodes."
    run_list(
      "recipe[apt]",
      "recipe[build-essential]",
      "recipe[git]",
      "recipe[zsh]",
      "recipe[users::sysadmins]",
      "recipe[sudo]",
    )

    env_run_lists(
      "production" => ["recipe[chef-client]"], 
      "staging" => [])
    )
    
When I run the `knife ec2 server create -E staging ....`, i.e. in the `staging` environment, the node's run_list is blank.

Is this the expected behavior? I was thinking that the `env_run_lists` items would be added up with the items in the above `run_list` items, just like the rails app's `config/database.yml`

-------------------------------------------
@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.tumblr.com
Sent with Sparrow




Archive powered by MHonArc 2.6.16.

§