How do I Force push a recipe to the end of run_list Iin Chef?

0 votes

How do I enforce a recipe to run as the last one, no matter where is it placed in the runlist?

Suppose I am having a recipe say cookbook_y:post and the expanded runlist is x1::x2 y1::y2 cookbook_y::post z1::z2,

I want to modify the expanded runlist in during run time (from a recipe, most likely in cookbook_y::post) and push its execution to the end.

What is the best way to achieve this?

Can anyone help me with this?

Thanks.

Aug 7, 2018 in Chef by shubham
• 6,890 points

recategorized Nov 12, 2018 by Omkar 74 views

1 answer to this question.

0 votes

Here is a concept which you can follow. Since it's not really something Chef supports so you can use tricks with delayed notifications like this:

package 'foo' do
  action :nothing
  delayed_action :install
end

But that has to be on each resource and there is no way to order between different delayed notifications.

I hope that you will find the above explanation informative and it will help you to resolve your query.

answered Aug 7, 2018 by Damon Salvatore
• 5,510 points

Related Questions In Chef

+5 votes
2 answers
0 votes
1 answer

How do I run chef client?

You've kinda answered your own question there. ...READ MORE

answered Jun 14, 2018 in Chef by ajs3033
• 7,280 points
36 views
0 votes
1 answer

How do I install chef on Ubuntu?

Hey @Yamini, follow these steps to install ...READ MORE

answered Feb 26 in Chef by Kalgi
• 42,540 points
73 views
+1 vote
2 answers

Unable To Create a Chef Node "ChefNode2"

Try giving the password to access your ...READ MORE

answered Oct 16, 2018 in Chef by Kalgi
• 42,540 points
324 views
0 votes
1 answer

Long running chef-client executions

You can try the following steps. Chef Server ...READ MORE

answered Jun 20, 2018 in Chef by shubham
• 6,890 points
39 views
+2 votes
3 answers

Using attributes in Chef

There are 6 different types of attributes: default: A default attribute ...READ MORE

answered Oct 23, 2018 in Chef by Aditya
423 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
217 views
0 votes
1 answer