The order of library loading


#1

Hello everyone,

According to the document, chef client will first load all the libraries from every cookbook at its compile time.
But in what order the libraries are loaded? Is it the order of cookbooks in the run list?

Thank you.

Tetsu


#2

On Monday, November 12, 2012 at 8:16 AM, Tetsu Soh wrote:

Hello everyone,

According to the document, chef client will first load all the libraries from every cookbook at its compile time.
But in what order the libraries are loaded? Is it the order of cookbooks in the run list?

Thank you.

Tetsu
Right now, it’s hash order, which is nondeterministic. I recently added run_list based ordering to attributes files for Chef 11[0], if there’s some spare cycles before the Chef 11 beta release comes out I’ll apply the same logic for other file types[1].

The logic is all there already, so it shouldn’t be much work if someone wants to take this on.


Daniel DeLeo

  1. http://tickets.opscode.com/browse/CHEF-2903
  2. http://tickets.opscode.com/browse/CHEF-3376

#3

Hello Daniel,

Thank you for the info.

Tetsu

On Nov 13, 2012, at 1:54 AM, Daniel DeLeo dan@kallistec.com wrote:

On Monday, November 12, 2012 at 8:16 AM, Tetsu Soh wrote:

Hello everyone,

According to the document, chef client will first load all the libraries from every cookbook at its compile time.
But in what order the libraries are loaded? Is it the order of cookbooks in the run list?

Thank you.

Tetsu
Right now, it’s hash order, which is nondeterministic. I recently added run_list based ordering to attributes files for Chef 11[0], if there’s some spare cycles before the Chef 11 beta release comes out I’ll apply the same logic for other file types[1].

The logic is all there already, so it shouldn’t be much work if someone wants to take this on.


Daniel DeLeo

  1. http://tickets.opscode.com/browse/CHEF-2903
  2. http://tickets.opscode.com/browse/CHEF-3376