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,500 points

recategorized Nov 12, 2018 by Omkar 25 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,270 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,040 points
17 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
• 35,800 points
37 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
• 35,800 points
192 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,500 points
26 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
175 views
+13 votes
2 answers
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.