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?
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