Search code examples
chef-infrachef-recipe

Chef configure a Node with runlists that can run in events other than while bootstrap?


I have a requirement to assign a run-list to a node using chef framework. But I see only a capability to run the recipes in the cookbooks during bootstrap of the node. Is there any way to specify "when" to run a recipe in the client instead of running it at bootstrap?


Solution

  • Of course, it's usual to run chef-client either as a service or through cron. See esp. the init_style attribute of the chef-client cookbook: https://github.com/opscode-cookbooks/chef-client#attributes