[chef] Run list ordering


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef] Run list ordering
  • Date: Tue, 29 Jan 2013 17:33:19 -0800 (PST)

Hi, I'm a bit confused about the ordering in the runlist.

I'm trying to set up elasticsearch using the elastic search cookbook from
https://github.com/elasticsearch/cookbook-elasticsearch
 
I have a search role looking like this:

name "search"
description "search"
run_list(
  "recipe[xml]",
  "recipe[java]",
  "recipe[monit]",
  "recipe[elasticsearch]",
  "recipe[elasticsearch::aws]",
  "recipe[elasticsearch::ebs]",
  "recipe[elasticsearch::data]",
)
default_attributes(

override_attributes(
  "xml" => {"packages" => ["libxml2", "libxml2-dev", "libxslt-dev"]}
)

From the logs when running the chef-client, I can see:

Run List expands to [xml, java, monit, elasticsearch, elasticsearch::aws,
elasticsearch::ebs, elasticsearch::data]

But then:

Loading cookbooks [ark, build-essential, chef_handler, elasticsearch, java,
monit, 
windows, xml]

So for some reason, xml is run after elasticsearch, which obviously blows up,
because it is trying to install nokogiri, which requires libxml2 etc.

Is there a way to override the order? Is it just being run alphabetically? I'm
confused :)



Archive powered by MHonArc 2.6.16.

§