【发布时间】:2014-11-21 07:53:11
【问题描述】:
Chef-client 在守护进程模式下运行时会定期应用 run_list,还是仅在 run_list 中的食谱/食谱通过 chef-server 更新时应用它?
【问题讨论】:
标签: chef-infra
Chef-client 在守护进程模式下运行时会定期应用 run_list,还是仅在 run_list 中的食谱/食谱通过 chef-server 更新时应用它?
【问题讨论】:
标签: chef-infra
无论厨师服务器上的食谱/食谱是否更新,都会定期执行 run_list。
【讨论】:
处于守护模式的 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.
【讨论】: