在守护进程模式下运行时,Chef-client会定期在定期间隔后应用run_list,或者仅在run_list中的食谱/ cookbook通过chef-server更新时应用它?
答案 0 :(得分:2)
守护进程模式的Chef-client会定期运行chef-client。
要设置间隔,您可以使用-i
标记。
一般来说,厨师可以在拉动模式下工作,而不是推动,虽然有一些工具也可以模仿它。
从手册页:
-d, --daemonize
Indicates that the executable will be run as a daemon. This
option is only available on machines that run in UNIX or Linux
environments. For machines that are running Microsoft Windows
that require similar functionality, use the chef-client::service
recipe in the chef-client cookbook:
http://community.opscode.com/cookbooks/chef-client. This will
install a chef-client service under Microsoft Windows using the
Windows Service Wrapper.
-i SECONDS, --interval SECONDS
The frequency (in seconds) at which the chef-client runs. This
value is configured for the chef-client application run time,
rather than in Chef::Config. Default value: 1800.
答案 1 :(得分:2)
无论是否在厨师服务器上更新食谱/烹饪书,都会定期执行run_list。