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
• 7,340 points

recategorized Nov 12, 2018 by Omkar 841 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,980 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,300 points
502 views
0 votes
1 answer

How do I install chef on Ubuntu?

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

answered Feb 26, 2019 in Chef by Kalgi
• 52,360 points
527 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
• 52,360 points
1,305 views
0 votes
1 answer

Long running chef-client executions

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

answered Jun 21, 2018 in Chef by shubham
• 7,340 points
506 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
3,051 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,439 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP